此方法可以看部分国外网站
百度搜索smarthosts
进入网站
点击source
复制网址
http://smarthosts.googlecode.com/svn/trunk/
在浏览器中输入这个网址,打开
点击hosts
编辑自己的hosts文件,linux在/etc/hosts,win的在c:\windows\system32\drivers\etc\hosts,win的要右键将只读属性去掉,然后用记事本编辑
将页面所中127.0.0.1后面的内容全部加入,就ok了