`

mac 安装homebrew

 
阅读更多

官网:https://brew.sh/index_zh-cn
安装命令:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
安装错误:curl: (7) 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.68.133 raw.githubusercontent.com
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics