curl: (7) Failed to connect to r

2022-08-01  本文已影响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

如图:

上一篇 下一篇

猜你喜欢

热点阅读