解决 curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

想安装ohmyzsh,报如下错误:

参考 https://github.com/hawtim/blog/issues/10, 出错是由于DN污染。

解决方法:

1.  修改host,建议使用 switchhosts 方便 host 管理

2. 复制输入如下地址

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

 

posted @ 2021-01-20 00:02  Rogn  阅读(699)  评论(0编辑  收藏  举报