curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

安装homebrew报错 curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

 

 用通过访问某个网址,发现网址访问不了(网络是正常的),后来查到可能是被墙的问题

 

查询真实IP

通过IPAddress.com首页,输入raw.githubusercontent.com查询到真实IP地址

安装homebrew报错 curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

 

 

安装homebrew报错 curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

 

 

 

 

修改hosts

sudo vi /etc/hosts

安装homebrew报错 curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

添加 199.232.*.* raw.githubusercontent.com

 然后再次访问可正常访问进行下载。

 

  参考: https://www.ioiox.com/archives/62.html

 

相关文章: