谷歌打不开

谷歌打不开,修改hosts就好了。

针对ubuntu系统:如果没有安装没有安装apache2的话,首先安装apache。

在终端中输入:sudo apt-get install apache2

然后修改hosts,

    根据这个地址下载hosts:   https://github.com/txthinking/google-hosts/blob/master/hosts      复制到你的hosts文件里。

在终端输入:sudo vim /etc/hosts    就可以对hosts 进行修改。

然后要重启apaceh2:输入  sudo /etc/init.d/apache2 restart

原文地址:https://www.cnblogs.com/kobigood/p/4050242.html