github访问不了解决方法

github突然无法访问,解决办法如下-迷恋自留地

  1. 首先通过网址https://tool.chinaz.com/dns?type=a&host=github.com

  2. 修改hosts文件,windows系统下修改 C:\Windows\System32\drivers\etc\HOSTS文件,在该文件中添加github.com与IP的对应关系信息,如下图所示
    在这里插入图片描述

20.205.243.166         github.com
  1. 修改完成后,在cmd中执行ipconfig/flushdns命令即可访问github网站了。
    在这里插入图片描述

解决方案:修改hosts文件无法保存/只能另存为txt
https://blog.csdn.net/qq_39118700/article/details/106303995
参考github访问不了解决方法

posted @ 2021-04-22 12:56  今晚打老虎!  阅读(380)  评论(3编辑  收藏  举报