解决github经常无法访问的问题

1.进入网址https://github.com.ipaddress.com,查看GitHub的ip地址。

140.82.113.3 github.com

2.进入网址https://fastly.net.ipaddress.com/github.global.ssl.fastly.net,找到域名ip

199.232.69.194 github.global.ssl.fastly.net

3.进入网址https://github.com.ipaddress.com/assets-cdn.github.com,找到静态资源ip

185.199.108.153 assets-cdn.github.com
185.199.110.153 assets-cdn.github.com
185.199.111.153 assets-cdn.github.com

最后把这些相对应的ip写入本机中的host文件中

host文件位置:C:WindowsSystem32driversetc

原文地址:https://www.cnblogs.com/bm20131123/p/14788969.html