安装方法
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
报错处理:Failed to connect to raw.githubusercontent.com port 443: Connection refused
完整报错:curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
处理:
1.先将DNS设置为114.114.114.114或者8.8.8.8
2.若还报错 则在终端输入
nslookup [http://raw.githubusercontent.com](http://link.zhihu.com/?target=http%3A//raw.githubusercontent.com)
它会返回多个对应IP,然后用第二或者第三个IP代替这段域名试试(ip:443)
或者将上面返回的IP设置成DNS
网友评论