github网站无法访问解决

今天准备在github上找一些资料,但是访问GitHub时提示无法访问此网站,换了多个浏览器依旧如此,后台在csdn中看到一位大哥的博客,终于解决了,这里记录下,方便以后遇到了此问题可以快速找到解决

在hosts文件中增加如下信息(hosts文件地址:C:WindowsSystem32driversetc):

140.82.112.4 github.com
140.82.113.3 gist.github.com
185.199.108.153 assets-cdn.github.com
199.232.68.133 raw.githubusercontent.com
199.232.68.133 gist.githubusercontent.com
199.232.68.133 cloud.githubusercontent.com
151.101.192.133 camo.githubusercontent.com
199.232.68.133 avatars0.githubusercontent.com
199.232.68.133 avatars1.githubusercontent.com
199.232.68.133 avatars2.githubusercontent.com
199.232.68.133 avatars3.githubusercontent.com
199.232.68.133 avatars4.githubusercontent.com
199.232.68.133 avatars5.githubusercontent.com
199.232.68.133 avatars6.githubusercontent.com
199.232.68.133 avatars7.githubusercontent.com
199.232.68.133 avatars8.githubusercontent.com

增加如上信息后再次访问就可以成功访问了

image.png

参考:https://blog.csdn.net/weixin_...

你可能感兴趣的:(github)