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

某天想玩玩 Homebrew,突然提示如下:
Homebrew | curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
依稀记得,我曾经玩过这个东西啊,啥情况?

果断官网准备安装下 Homebrew:
Homebrew | curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
出师不利,自然的打开 Stack Overflow 查找解决之道:

关键靠谱答案截图如下:
Homebrew | curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
我们按照此步骤操作一番~

Step 1:首先打开 Homebrew install:

将文件另存为:brew_install.rb

鉴于个人也出现了几次打不开的情况,这里附上百度网盘地址,方便小伙伴操作:

  • 链接: https://pan.baidu.com/s/1HvJZj0dl9fDqtgzmVtK2iw 密码:umqb

Step 2:ruby 安装已下载的 brew_install.rb:

iTerm 2 键入如下指令:

  • ruby [brew_install.rb 地址]

如下图所示:
Homebrew | curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
安装成功信息如下:
Homebrew | curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
哦可,玩去吧~