mac安装Homebrew,提示如下错误curl: (28) Failed to connect to raw.githubusercontent.com port 443 after 75004 ms: Couldn’t connect to server,解决办法如下:

第1步 打开host文件:打开finder,command+shfit+go 搜索/private/etc/hosts
点击hosts,修改有权限,
在这里插入图片描述
这里修改保存的副本,

第二步添加IP到上述文件中:

199.232.68.133 raw.githubusercontent.com
199.232.68.133 user-images.githubusercontent.com
199.232.68.133 avatars2.githubusercontent.com
199.232.68.133 avatars1.githubusercontent.com

第三步,验证是否添加成功

brew --version

参考博文
https://blog.csdn.net/quanqxj/article/details/138892880

Logo

一站式 AI 云服务平台

更多推荐