天天看点

Homebrew安装报错curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

最近在通过命令

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
           

安装

Homebrew

的时候总是出错,提示

curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
           

关于Homebrew的介绍使用请移步这里

也就是说链接

raw.githubusercontent.com

的时候被拒绝了,而我们访问的主要目的是下载一个名叫

brew_install.rb

的文件。网上很多人也都贴出来了这个文件,大家可以去百度云下载。提取码:

4eti

下载之后,终端cd到存放该文件的目录里面,执行命令

ruby brew_install.rb
           

然后就开始自动安装了,没有梯子的话,可能速度比较慢,耐心等待即可

继续阅读