美文网首页
curl: (7) Failed to connect to r

curl: (7) Failed to connect to r

作者: 蜗牛锅 | 来源:发表于2022-08-01 11:46 被阅读0次

安装brew时报curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
参考 https://github.com/hawtim/blog/issues/10, 出错是由于DN污染。

打开 前往文件夹 输入 /etc/hosts 打开hosts文件

添加:

# GitHub Start

140.82.112.4 github.com
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

# GitHub End

如图:

相关文章

网友评论

      本文标题:curl: (7) Failed to connect to r

      本文链接:https://www.haomeiwen.com/subject/cscrwrtx.html