報錯: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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章