修改hosts

  修改hosts文件访问google, google scholar etc

hosts文件参见老D的博客laod.cn

windows目录

C:WindowsSystem32driversetchosts

Linux目录:

/etc/hosts

修改hosts文件后立即生效:

      Ubuntu: $sudo /etc/init.d/networking restart

      Gentoo: /etc/init.d/net.eth0 restart
 
Windows:

ipconfig /displaydns

//显示DNS缓存内容

ipconfig /flushdns

//删除DNS缓存内容

原文地址:https://www.cnblogs.com/cslxiao/p/4816062.html