当前位置:   article > 正文

解决github打不开_github 打不开

github 打不开

1:如果直接ping github.com 显示的为超时

2:打开C:\Windows\System32\drivers\etc目录找到hosts文件

        ps:如果直接修改这个文件是没有办法进行保存的

        解决办法:直接Ctrl+C复制到桌面或者其他地方,通过记事本或者其他软件打开如editplus

               在末尾增加

#github start
20.248.137.48 github.com
#github end

#githubassets start

185.199.111.154 github.githubassets.com
185.199.110.154 github.githubassets.com
185.199.109.154 github.githubassets.com
185.199.108.154 github.githubassets.com

185.199.111.154 raw.githubusercontent.com
185.199.110.154 raw.githubusercontent.com
185.199.109.154 raw.githubusercontent.com
185.199.108.154 raw.githubusercontent.com

185.199.111.154 avatars.githubusercontent.com
185.199.110.154 avatars.githubusercontent.com
185.199.109.154 avatars.githubusercontent.com
185.199.108.154 avatars.githubusercontent.com

185.199.111.154 camo.githubusercontent.com
185.199.110.154 camo.githubusercontent.com
185.199.109.154 camo.githubusercontent.com
185.199.108.154 camo.githubusercontent.com

185.199.111.154 raw.githubusercontent.com
185.199.110.154 raw.githubusercontent.com
185.199.109.154 raw.githubusercontent.com
185.199.108.154 raw.githubusercontent.com


#githubassets end

3:点击保存,然后把这个文件再copy回C:\Windows\System32\drivers\etc目录下直接替换

4:大功告成

5:补充 上诉2的地址通过多个地点Ping服务器,网站测速 - 站长工具 (chinaz.com)获取

这种是不能使用的状态

这种是可以直接使用的状态


6:

至于上面的这个是github的资源域名

IP地址的确定同上 只需要在刚才搜索的地方把github.com替换为github.githubassets.com地址就可以拿到能访问的IP地址

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/神奇cpp/article/detail/781139
推荐阅读
相关标签
  

闽ICP备14008679号