搜索引擎中搜索“google hosts”,或者参看下面的链接生成hosts文件内容:


http://blog.netsh.org/posts/youtube-google-facebook-twitter-wikipedia-hosts_1199.netsh.html


http://laod.cn/hosts/2015-google-hosts.html



把hosts内容加到hosts文件末尾就可以正常访问google了。


另外,打开google快照后不能显示,这是因为打开快照链接后,新打开的页面默认使用了http协议,只需要把地址栏中的http改为https,就可以正常显示了。


注意:

访问google等网站,一定要使用https协议,而非http,这样才可正常访问。


Windows下hosts文件位置:

c:\windows\system32\drivers\etc\hosts


OS X及Linux下hosts文件位置:

/etc/hosts


参考:
https://github.com/txthinking/google-hosts
https://code.google.com/p/huhamhire-hosts/
http://www.yuxiaoxi.com/2014-06-11-google-meet-you.html
http://www.xiazaiba.com/jiaocheng/972.html
http://www.williamlong.info/archives/3878.html