Github打不开无法访问怎么办?如何解决?

Jaysun

1.jpg

Github只要是程序员应该没有人不知道的,开源网站,很多时候国内访问的时候不是很稳定,经常的登录不上打开不开网页,这种情况怎么办?如何解决?今天就分享一下方法。

话不多说直接开始教程:

1.打开C:\Windows\System32\drivers\etc 路径下的的hosts文件

在hosts文件内加上如下内容并保存

140.82.114.4 github.com
140.82.114.4 gist.github.com
185.199.108.153 assets-CDN.github.com
151.101.64.133 raw.githubusercontent.com
151.101.108.133 gist.githubusercontent.com
151.101.108.133 cloud.githubusercontent.com
151.101.108.133 camo.githubusercontent.com
151.101.108.133 avatars0.githubusercontent.com
151.101.108.133 avatars1.githubusercontent.com
151.101.108.133 avatars2.githubusercontent.com
151.101.108.133 avatars3.githubusercontent.com
151.101.108.133 avatars4.githubusercontent.com
151.101.108.133 avatars5.githubusercontent.com
151.101.108.133 avatars6.githubusercontent.com
151.101.108.133 avatars7.githubusercontent.com
151.101.108.133 avatars8.githubusercontent.com


如图

1.png

如果无法编辑,鼠标右键打开文件属性将“只读”取消勾选并应用保存

1.png

Win+R打开运行框,输入cmd打开命令窗口,输入ipconfig/flushdns命令会提示以下信息

1.png

然后就可以愉快的访问Github了!

您需要 登录账户 后才能发表评论

发表评论

快捷回复: 表情:
AddoilApplauseBadlaughBombCoffeeFabulousFacepalmFecesFrownHeyhaInsidiousKeepFightingNoProbPigHeadShockedSinistersmileSlapSocialSweatTolaughWatermelonWittyWowYeahYellowdog
评论列表 (暂无评论,1515人围观)

还没有评论,来说两句吧...

目录[+]

取消
微信二维码
微信二维码
支付宝二维码