本文主要解决github访问超时问题,也可用于其他网站尝试
1.打开终端(cmd),输入命令:ping github.com 显示超时。
2.打开 hosts文件,地址:C:\Windows\System32\drivers\etc 看是否是默认配置。
3.打开ping.chinaz.com/https://git…
查询结果:
4. 然后在hosts文件中最后一行添加:
52.69.186.44 github.com
保存hosts
5.cmd再次ping github.com,看是否ping通,如果通了,就可以了。