安装Homebrew报错

安装brew报错如下:

curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

修改/etc/hosts$

sudo vi /etc/hosts

在最后一行添加199.232.68.133 raw.githubusercontent.com
esc->:wq保持退出后,再运行

原文地址:https://www.cnblogs.com/liuxiaoru/p/13875611.html