raw.githubusercontent.com port 443: Connection refused

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

很多人在安装依赖时,由于网络原因(没FQ),导致依赖安装失败,出现上述错误。下面给出详细教程,通过修改hosts解决此问题的办法,不用FQ

查找网址真实IP

查询网址对应的真实IP,通过https://www.ipaddress.com/来查询对应IP

2021/9/9日最新的IP详情

修改hosts文件

hosts文件中添加对应映射信息,保存hosts文件即可

185.199.108.133 raw.githubusercontent.com
185.199.109.133 raw.githubusercontent.com
185.199.110.133 raw.githubusercontent.com
185.199.111.133 raw.githubusercontent.com

参考资料

posted @ 2021-09-09 17:31  小菜菜爱吃菜  阅读(320)  评论(0编辑  收藏  举报