github 访问不了或者访问慢

1.首先通过网址  https://github.com.ipaddress.com/www.github.com   查看当前github.com对应的IP地址,查到的信息如下图所示

 

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

 

 3. 修改完成后,在cmd中执行ipconfig/flushdns命令即可访问github网站了。

 

posted @ 2021-05-24 11:29  kaikaichao  阅读(234)  评论(0编辑  收藏  举报