Mac安装homebrew报错
##报错1:curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
#解决办法:1、打开网站:查询IP https://www.ipaddress.com/
查询一下 raw.githubusercontent.com对应的IP 地址
2、 sudo vim /etc/hosts
修改hosts文件,如下图
然后再执行/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
报错2:curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443
解决办法:使用国内资源 /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
按步骤安装后检查安装brew -v
`