问题:macOS安装Homebrew时总是报错(Failed to connect to raw.githubusercontent.com port 443: Connection refused)
原因:GitHub的raw.githubusercontent.com域名解析的问题
修改hosts
sudo vim /etc/hosts
添加如下内容:
199.232.28.133 raw.githubusercontent.com
本文解决macOS中使用Homebrew时遇到的连接失败问题。原因是GitHub域名解析异常,通过修改hosts文件并添加特定IP地址,可以有效解决此问题。
问题:macOS安装Homebrew时总是报错(Failed to connect to raw.githubusercontent.com port 443: Connection refused)
原因:GitHub的raw.githubusercontent.com域名解析的问题
修改hosts
sudo vim /etc/hosts
添加如下内容:
199.232.28.133 raw.githubusercontent.com
1499
395
1542
1506
2122
1123
1万+

被折叠的 条评论
为什么被折叠?