ping不通github

 

Linux 下
host文件在 /etc/hosts

Windows下
host文件在C:WindowsSystem32driversetc

在host文件的最后面加上:
Linux

Copy
sudo vim /etc/hosts

Windows
复制一份host文件到别的比方,然后用记事本打开,把下面的代码复制进去,保存,然后再复制到C:WindowsSystem32driversetc,替换,允许即可搞定。

Copy
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
原文地址:https://www.cnblogs.com/php-linux/p/13024505.html