ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
sudo vim /etc/hosts
# 加上一行
199.232.28.133 raw.githubusercontent.com
再执行一次就可以了,域名被污染了,不可用

本文解决在使用Ruby或curl命令时遇到的连接raw.githubusercontent.com失败的问题,通过修改hosts文件添加特定IP地址来绕过域名污染,确保命令能正常执行。
1万+





