~ /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
中间过程省略 直到出现
显示安装成功。
如果安装过程中出现了下面错误
Cloning into ‘/usr/local/Homebrew’…
fatal: unable to access ‘https://mirrors.ustc.edu.cn/brew.git/’: Failed to connect to 127.0.0.1 port 9666: Connection refused
Cloning into ‘/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core’…
fatal: unable to access ‘https://github.com/Homebrew/homebrew-core/’: Failed to connect to 127.0.0.1 port 1080: Connection refused
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
查看
https://blog.csdn.net/qq_33615974/article/details/112213219