Failed to connect to raw.githubusercontent.com port 443: Connection refused
Posted dylansuns
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Failed to connect to raw.githubusercontent.com port 443: Connection refused相关的知识,希望对你有一定的参考价值。
问题:macOS安装Homebrew时总是报错(Failed to connect to raw.githubusercontent.com port 443: Connection refused)
原因:由于某些你懂的因素
,导致GitHub的raw.githubusercontent.com
域名解析被污染了。
解决办法:通过修改hosts
解决此问题。
查询真实IP
在https://www.ipaddress.com/查询raw.githubusercontent.com的真实IP。
修改hosts
sudo vim /etc/hosts
添加如下内容:
199.232.28.133 raw.githubusercontent.com
参考如下内容:
https://bbs.huaweicloud.com/blogs/143682
以上是关于Failed to connect to raw.githubusercontent.com port 443: Connection refused的主要内容,如果未能解决你的问题,请参考以下文章
curl: Failed to connect to raw.githubusercontent.com port 443: Connection refused
curl: Failed to connect to raw.githubusercontent.com port 443: Connection refused
curl: Failed to connect to raw.githubusercontent.com port 443: Connection refused
问题解决curl: Failed to connect to raw.githubusercontent.com port 443: Connection refused
curl: Failed to connect to raw.githubusercontent.com port 443: Connection refused
curl: Failed to connect to raw.githubusercontent.com port 443: Connection refused