Ubuntu系统的Hosts

现是需要修改hosts。修改完之后要重启网络。
具体过程如下:
1、修改hosts
sudo gedit /etc/hosts
2、添加解析记录( . )
完整案例:127.0.0.1 localhost.localdomain localhost
简洁记录:127.0.0.1 localhost
3、保存后重启网络
sudo /etc/init.d/networking restart

posted @ 2016-01-12 15:53  天艺思宇  阅读(165)  评论(0)    收藏  举报