github網站沒法訪問解決

今天準備在github上找一些資料,可是訪問GitHub時提示沒法訪問此網站,換了多個瀏覽器依舊如此,後臺在csdn中看到一位大哥的博客,終於解決了,這裏記錄下,方便之後遇到了此問題能夠快速找到解決git

在hosts文件中增長以下信息(hosts文件地址:C:WindowsSystem32driversetc):github

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_...網站

相關文章
相關標籤/搜索