解决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:\Windows\System32\drivers\etc

posted @ 2021-05-20 10:58  cmwang2017  阅读(1425)  评论(0编辑  收藏  举报