Github打不开,打开慢的解决办法

Github打不开,打开慢的解决办法

有人使用github后,在某些网络下发现打开慢,甚至打不开,这都是因为他是国外站;目前互联网的连接机制导致超过一定的路由节点的连接就会出现这个问题,解决办法就是直接告诉本机ip。不要先层层询问域名转ip,这样速度和连接的速度都可以进一步的大副提升,所以将下面的内容帖到本机的hosts文件中,就能大幅度提速,并且打不开的也会打开!

windows下路径为:C:\Windows\System32\drivers\etc\hosts

Linux下路径:/etc/hosts

192.30.253.112 github.com
192.30.253.119 gist.github.com
151.101.100.133 assets-cdn.github.com
151.101.100.133 raw.githubusercontent.com
151.101.100.133 gist.githubusercontent.com
151.101.100.133 cloud.githubusercontent.com
151.101.100.133 camo.githubusercontent.com
151.101.100.133 avatars0.githubusercontent.com
151.101.100.133 avatars1.githubusercontent.com
151.101.100.133 avatars2.githubusercontent.com
151.101.100.133 avatars3.githubusercontent.com
151.101.100.133 avatars4.githubusercontent.com
151.101.100.133 avatars5.githubusercontent.com
151.101.100.133 avatars6.githubusercontent.com
151.101.100.133 avatars7.githubusercontent.com
151.101.100.133 avatars8.githubusercontent.com

不需要动其他代码,直接添加以上代码进去保存就行。

最后修改:2020 年 02 月 13 日
如果觉得我的文章对你有用,请随意赞赏