armfly 发表于 2021-3-18 21:01:41

github突然打不开了,解决办法有效



转摘: https://segmentfault.com/a/1190000037498373


[*]最近发现github突然打不开了。经过一番搜索,终于找到一个改host的方法使得可以正常打开github,而且发现打开速度比之前还快。大家也可以试试。
[*]在C:\Windows\System32\drivers\etc中打开hosts文件(可以用UE等编辑工具打开),在该文件中添加如下内容。
# GitHub Start 140.82.114.4 github.com140.82.114.4 gist.github.com185.199.108.153 assets-cdn.github.com151.101.64.133 raw.githubusercontent.com151.101.108.133 gist.githubusercontent.com151.101.108.133 cloud.githubusercontent.com151.101.108.133 camo.githubusercontent.com151.101.108.133 avatars0.githubusercontent.com151.101.108.133 avatars1.githubusercontent.com151.101.108.133 avatars2.githubusercontent.com151.101.108.133 avatars3.githubusercontent.com151.101.108.133 avatars4.githubusercontent.com151.101.108.133 avatars5.githubusercontent.com151.101.108.133 avatars6.githubusercontent.com151.101.108.133 avatars7.githubusercontent.com151.101.108.133 avatars8.githubusercontent.com # GitHub End
[*]保存文件,重新刷新网页即可打开github了。
[*]github打开慢的同学,也可以试试这个方法。

页: [1]
查看完整版本: github突然打不开了,解决办法有效