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)"

发现下载夯住不动,无意间发现更换网络运营商可以解决。

Categories: mac

0 Comments

发表评论

Avatar placeholder

邮箱地址不会被公开。 必填项已用*标注