解决github访问不了的方法

1、打开网站http://tool.chinaz.com/dns/ ,在A类型的查询中输入 github.com,找到最快访问的ip地址,并复制下来。
在这里插入图片描述

2、修改系统文件的hosts文件
进入C:\Windows\System32\drivers\etc\hosts,在最后添加:20.205.243.166 github.com

3、刷新 DNS
ipconfig/flushdns

在这里插入图片描述

4、最后重新打开浏览器访问github即可

注:刷新DNS,不会影响IP(IP地址不变)

猜你喜欢

转载自blog.csdn.net/weixin_44141284/article/details/127647895