Mac 安裝 homebrew:git
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
報錯:github
Failed to connect to raw.githubusercontent.com port 443
這個是你的主機沒法鏈接 raw.githubusercontent.com 致使的ruby
解決辦法:curl
使用國內的源url
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
參考: https://zhuanlan.zhihu.com/p/111014448spa