github.com连接超时解决

首先打开文件hosts:

C:\Windows\System32\drivers\etc  

hosts文件是不具有保存权限的,需要修改hosts文件的保存权限。
https://jingyan.baidu.com/article/624e7459b194f134e8ba5a8e.html
在记事本最后一行添加:

192.30.253.113    github.com
192.30.252.131 github.com
185.31.16.185 github.global.ssl.fastly.net
74.125.237.1 dl-ssl.google.com
173.194.127.200 groups.google.com
192.30.252.131 github.com
185.31.16.185 github.global.ssl.fastly.net
74.125.128.95 ajax.googleapis.com

保存,然后通过cmd命令行的形式输入ping github.com。
能ping通表示修改成功。

发布了37 篇原创文章 · 获赞 0 · 访问量 639

猜你喜欢

转载自blog.csdn.net/xionglaine/article/details/104159673