Mac-3:~ wang$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
原因:由于某些你懂的因素
,导致GitHub的raw.githubusercontent.com
域名解析被污染了。
解决:
在https://www.ipaddress.com/查询raw.githubusercontent.com的真实IP
修改hosts,添加:199.232.28.133 raw.githubusercontent.com
再次执行:
ruby -e "$(curl --insecure -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
发现下载夯住不动,无意间发现更换网络运营商可以解决。
0 Comments