Comments (9)
在root权限下,使用任意编辑器修改/etc/hosts文件,将其内容替换成以下条目即可:
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
from huhamhire-hosts.
。。我知道在这里改。。不过最大的问题不在这里。。。。。真悲剧啊。。 我把你程序备份的配置重新弄到/etc/hosts下面都不成。。然后我删除/etc/hosts。接着再新建一个hosts 就神奇的成功了。。。。
不应是编码的问题吧。。。
from huhamhire-hosts.
在今年年初的项目整合的时候的确出现了一些编码问题,不过后来应该都解决了~~您后来自己建的hosts文件是空文件吗?
from huhamhire-hosts.
是的。把之前的hosts删除。再vim 新建一个,再接着写127.0.0.1 www.a.com 就可以了。。
from huhamhire-hosts.
如果是这样的话,未必是编码问题~您有看过原先hosts文件的编码及换行符没?
from huhamhire-hosts.
我之前的一直在用。没有问题。安装后,再改就不生效了。。。。
from huhamhire-hosts.
那使用的是有线网还是无线网呢?最近我发现Mountain Lion在有线网的环境下可能会优先访问DNS而不是hosts文件的问题,原因暂时木有查明
from huhamhire-hosts.
还有个办法是使用我们提供的utf8格式的纯hosts文件直接替换,其实用CLI的话要比图形界面方便不少
from huhamhire-hosts.
无线哦。最新的系统。10.8.3 我刚开始用的就是命令行的,我一看有dmg 的心想就下来试试,结果遇到这个情况。不过好再知道问题了,非常感谢。
from huhamhire-hosts.
Related Issues (20)
- HOSTS 好久没更新了 HOT 6
- 1.5.7的host已阵亡了 HOT 2
- 1.5.7 data file lost its function, can't use google anymore. HOT 3
- Internet to slow
- 最近好不稳定的样子...
- 1.5.5 谷歌相关服务今天彻底全部失效
- 2015/3/26 1.5.5 google服务又无法访问了. HOT 36
- AttributeError: 'NoneType' object has no attribute 'decode'
- 建议添加这几个Google网站
- 上海电信无法下载数据(data file)? HOT 1
- 2015/4/24深圳1.5.6挂掉了 HOT 11
- 更新host卡住不动了 HOT 5
- [1.5.7]赤峰联通加载不了google HOT 1
- Wiki 搜索错误
- 可以分享一下win版的吗 :)
- 是不是项目停了?迟迟不见更新数据 HOT 2
- 2015/8/1 google服务问题 HOT 1
- 无法更新
- 看起来已经有人向作者施压了 HOT 1
- 北京联通,Google无法访问
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from huhamhire-hosts.