解决 failed to connect to raw.githubusercontent.com port 443: Connection refused

想安装openresty,报如下错误:

 

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

解决方法:

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 @ 2023-05-07 22:01  r1-12king  阅读(1181)  评论(0编辑  收藏  举报