问题
mac系统重新装了10.15.5的版本,安装brew或者zsh的时候,根据官方安装指导
# zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
总是提示
curl: (7) Failed to connect to raw.github.com port 443: Connection refused
解决
- 网上有说访问brew ,将脚本保存为
xx.rb
, 然后运行ruby xx.rb
试了下不行; - 还有说重新安装
xcode-select --install
的(不建议尝试) - 修改dns,把dns改为8.8.8.8,然后可以安装了 (改了之后可以了)