目录
直接上解决方法,绝对亲测可用。
解决方法:
1. 查找可用的IP
点击“ 网站ip查询 ”,可自动查询到raw.githubusercontent.com对应的IP地址。
一般会出现多个对应的IP。在cmd中用ping命令测试,选取延迟低的IP地址。
2. 增加IP映射
在windows中,hosts文件位置为 C:\Windows\System32\drivers\etc\,增加以下内容:
xxx.xxx.xxx.xxx raw.githubusercontent.com
(注意1:以xxx表示的ip地址应选择当前的低延时ip)
(注意2:可能在某些系统中,因权限问题无法直接修改时,可选用VScode操作)