由於眾所周知的原因,raw.githubusercontent.com
的域名解析已被污染,無法訪問。
除了掛上代理訪問之外,還有個方法就是修改hosts解決問題。
獲取真實ip
進入IPAddress這個網站,在搜索框內輸入raw.githubusercontent.com
即可查詢真實IP地址。
修改hosts
Linux
以管理員權限打開/etc/hosts
文件,在里面加入以下內容
1 199.232.28.133 raw.githubusercontent.com
Windows
以管理員權限打開C:\Windows\System32\drivers\etc
目錄下的hosts
文件,在里面加入以下內容即可
1 199.232.28.133 raw.githubusercontent.com
本文為轉載自:https://www.yong.eu.org/detail/2396.html
轉載原因:搜索引擎中不容易找到該文章。