报错:curl: (7) Failed connect to raw.githubusercontent.com:443

参考:https://www.cnblogs.com/Dylansuns/p/12309847.html

执行 curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash 时

报错:curl: (7) Failed connect to raw.githubusercontent.com:443;

因为raw.githubusercontent.com域名解析被污染了解析不了

解决方案:在https://www.ipaddress.com/查询raw.githubusercontent.com的真实IP。

利用本地设置hosts文件

修改hosts

sudo vim /etc/hosts

添加如下内容:即可

 

199.232.28.133 raw.githubusercontent.com
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章