安装Homebrew/Oh-MyZsh等时都会需要用到raw.githubusercontent.com,但是经常会出现Connection refused erro:
墙的问题(域名解析污染)
在 https://www.ipaddress.com/ 查询 raw.githubusercontent.com 的真实IP。
在hosts中添加相应解析:
sudo vi /etc/hosts
199.232.28.133 raw.githubusercontent.com
CommandLine Tools问题
重装command line tools,再执行安装指令:
移除旧的CommandLine Tools:
rm -rf /Library/Developer/CommandLineTools
重新安装CommandLine Tools:
xcode-select --install