mac在安装homebrew时报curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

问题:MacBook在安装brew的时候遇到如下问题

~ % /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

解决办法 -一句命令搞定,国内的镜像地址

镜像选择推荐选择清华大学TUNA镜像源;如果下载过慢,推荐使用根据执行提示,重新选择镜像源
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

以上参考和转载博文:https://www.joynop.com/p/317.html
如有侵权,联系删除

原文地址:https://www.cnblogs.com/luckyqh/p/14901546.html