安装homebrew

2022-04-06  本文已影响0人  江湖闹士

地址
https://brew.sh/index_zh-cn.html

解决fatal: unable to access 'https://github.com/homebrew/brew/':

git config --global --unset http.proxy
git config --global --unset https.proxy

解决问题: curl: (7) Failed to connect to raw.githubusercontent.com port 443 after 9 ms: Connection refused

解决方法如下:
1、打开网站https://www.ipaddress.com/
查询一下 raw.githubusercontent.com对应的IP 地址
2、


如果IP地址是这种的,往下滑

添加

3、替换系统的host文件,系统的文件是只读文件,所以复制一份出来在更改,改完再替换掉


4、然后执行安装
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
安装 Homebrew的命令,官网地址大家可以自行查看。

上一篇 下一篇

猜你喜欢

热点阅读