最简单的方法就是下载一个加速器,比如Watt ToolKit,可以免费加速GitHub、Steam。
在网上还看到其他方法,之前试过还行:
1、打开 https://www.ipaddress.com/ip-lookup
2、搜索github.com
和github.global.ssl.fastly.net
的IP
我这里搜索结果为:
3、进入hosts目录:C:\Windows\System32\drivers\etc,打开hosts文件
4、在hosts文件的末尾添加
#github
140.82.112.3 github.com
199.232.69.194 github.global.ssl.fastly.net
添加后的样子
添加后保存退出。
5、打开命令提示符,执行ipconfig/flushdns
刷新DNS解析缓存。
任何时候打不开github了,都可以重新执行ipconfig/flushdns
试下。
6、现在可以打开github了。