解决国内访问github慢的问题笔记


1.使用浏览器访问https://www.ipaddress.com/,分别获取github.com,github.global.ssl.fastly.net对应的ip

 本人获取的ip如下:

140.82.113.4 github.com
199.232.69.194 github.global.ssl.fastly.net

2.修改host文件(找到这个目录的文件打开host)

C:\Windows\System32\drivers\etc

把上面获取的两个ip地址加到最后两行保存

3.更新DNS缓存

C:\Users\xxx>ipconfig /flushdns

4.重新访问https://github.com,就好了