安装homebrew报错curl: (7) Failed to connect to raw.githubusercontent.com port443: Connection refused
通过IPAddress.com首页,输入raw.githubusercontent.com查询到真实IP地址 199.232.*.*
打开终端 :执行 sudo vi /etc/hosts
添加 199.232.*.* raw.githubusercontent.com
然后再次访问可正常访问进行下载。
——————————————
卸载homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
安装homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"