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

笔者在fq的情况下无此问题,所以确定应该是域名解析的问题。

解决方法:通过修改hosts文件解决。

1.首先打开https://www.ipaddress.com,查询一下 raw.githubusercontent.com对应的真实IP地址。

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

2.修改hosts文件

sudo vim /etc/hosts

复制粘贴添加如下内容:

199.232.68.133  raw.githubusercontent.com

键盘操作保存退出:

esc
:wq
enter

原创文章,作者:huoxiaoqiang,如若转载,请注明出处:https://www.huoxiaoqiang.com/experience/gite/1847.html

(10)
上一篇 2020年8月10日 02:17
下一篇 2020年8月30日 17:48

发表回复

登录后才能评论