- mac上安装brew出错curl: Failed to conn
- mac上安装brew出错curl: (7) Failed to
- curl: (7) Failed to connect to r
- brew安装与卸载报错:curl: (7) Failed to
- 安装homebrew报错curl: (7) Failed to
- [MacOS安装homebrew报错:curl: (7) Fai
- Mac 安装brew报错:curl: (7) Failed to
- Selenium 之 Mac安装Homebrew报错curl:
- Mac 安装brew时遇到curl: (7) Failed to
- Mac 安装brew时遇到curl: (7) Failed to
出现了一下错误:

curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
解决方案:
在浏览器打开:https://raw.githubusercontent.com/Homebrew/install/master/install,会提示访问失败
1、打开网站 https://www.ipaddress.com/

2、网站直接搜索: raw.githubusercontent.com , 会出现对应的IP
3、复制对应的IP 到自己电脑的hosts文件里面 (hosts文件路径: /ect/hosts)
4、替换方式用命令行输入: vim /etc/hosts(假如没有权限需要 sudo vim /etc/hosts 输入密码)
5、里面加入: 上面查找的IP地址 raw.githubusercontent.com
6、输入:wq退出vim
最后在终端输入:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

附加一份vim的快捷键

后续》。。。。。生活教会你做人
用国内源,贼快
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

网友评论