參考: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