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

 

相关文章:

  • 2021-09-10
  • 2021-12-29
  • 2021-08-28
  • 2021-05-25
  • 2021-09-15
  • 2021-07-08
猜你喜欢
  • 2022-01-20
  • 2022-12-23
  • 2021-11-17
  • 2021-07-20
  • 2021-05-29
相关资源
相似解决方案