小小菜鸟的web菜园子

web开发学习。好记性不如烂笔头。每天进步一点点!

导航

ubuntu中unable to resolve host xxx问题的解决方法

      编辑/etc/hosts文件,在终端里输入:gksu gedit /etc/hosts 在127.0.0.1 localhost下面输入:

  127.0.1.1 zhichier-desktop(这里的“zhichier-desktop”是我的hostname,也就是从/etc /hostname文件里看到的内容,你根据你自己的实际情况作出更改。)

  至此,问题就解决了。

posted on 2008-12-24 19:41  『小小菜鸟』  阅读(2542)  评论(0编辑  收藏  举报