赞
踩
苹果黑苹果关于
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
的报错
最近下载GitHub上下载安装brew的时候出现这种报错,主要原因是GitHub网站域名被污染,为了解决这一问题,我们只需要修改本机的hosts文件就行了
首先呢,我们打开命令行
输入:
sudo vi /etc/hosts
这样就打开了我们的hosts文件,
然后在按下“i”键对hosts进行编辑
将光标挪到文件最后一行,回车输入
199.232.68.133 raw.githubusercontent.com
199.232.68.133 user-images.githubusercontent.com
199.232.68.133 avatars2.githubusercontent.com
199.232.68.133 avatars1.githubusercontent.com
然后按下ESC输入
:wq
保存退出,问题就解决了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。