Github网站无法打开

1.打开Dns检测|Dns查询 - 站长工具 (chinaz.com)(https://tool.chinaz.com/dns/)

2.输入网址,复制响应IP地址

 

3.找到 hosts 文件

 

 

4.以记事本方式打开 hosts 文件,在文件中添加以下内容:

# github
20.205.243.166  github.com
20.205.243.166  gist.github.com
20.205.243.166  assets-cdn.github.com
20.205.243.166  raw.githubusercontent.com
20.205.243.166  gist.githubusercontent.com
20.205.243.166  cloud.githubusercontent.com
20.205.243.166  camo.githubusercontent.com
20.205.243.166  avatars0.githubusercontent.com
20.205.243.166 avatars1.githubusercontent.com
20.205.243.166 avatars2.githubusercontent.com
20.205.243.166 avatars3.githubusercontent.com
20.205.243.166 avatars4.githubusercontent.com
20.205.243.166 avatars5.githubusercontent.com
20.205.243.166 avatars6.githubusercontent.com
20.205.243.166 avatars7.githubusercontent.com
20.205.243.166 avatars8.githubusercontent.com

 

5.ctrl r 打开 cmd 窗口,输入 ipconfig/flushdns 

 

 

6.重新打开网站(如果要搜索其他内容还是进不去,建议直接找到具体网址进入)

 

 

解决参考:github打不开?这样解决 - 一杯明月 - 博客园 (cnblogs.com)

posted @ 2022-12-13 20:49  十一10086  阅读(230)  评论(0编辑  收藏  举报