你好,游客 登录 注册 搜索
背景:
阅读新闻

Ubuntu 11.10下如何设置主机名

[日期:2012-03-08] 来源:Linux社区  作者:ce123 [字体:大 中 小]

在Ubuntu 11.10终端可以用hostname查看主机名。

主机名存放在/etc/hostname中 ,sudo gedit /etc/hostname 修改后保存

Ubuntu 11.10下如何设置主机名

 

Ubuntu 11.10下如何设置主机名

/etc/hosts还有一个备份 ,   sudo gedit /etc/hosts  修改保存,重启即可。

Ubuntu 11.10下如何设置主机名
 
Ubuntu 11.10下如何设置主机名


127.0.0.1    localhost
127.0.1.1    www-linuxidc-com

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

linux
相关资讯       Ubuntu 11.10 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款