Loading

解决GitHub打不开的问题

解决GitHub打不开的问题


github的ip和cdn老是有变化,导致国内的用户无法登陆。记录一下怎么解决


一、确定ip

进入网址https://github.com.ipaddress.com

查看GitHub的ip地址。



140.82.114.4 github.com


二、确定域名ip

进入网址https://fastly.net.ipaddress.com/github.global.ssl.fastly.net


199.232.69.194 github.global.ssl.fastly.net


三、确定静态资源ip

进入网址https://github.com.ipaddress.com/assets-cdn.github.com


185.199.108.153 assets-cdn.github.com

185.199.110.153 assets-cdn.github.com

185.199.111.153 assets-cdn.github.com


四、修改hosts文件

Windows系统:打开 C:\Windows\System32\drivers\etc 找到hosts文件


右键打开,把之前三步的ip粘贴在最下方 保存后,重新打开GitHub就可以了。 一般情况下就可以直接访问了

posted @ 2021-03-21 17:16  就学45分钟  阅读(810)  评论(0编辑  收藏  举报