LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 782|回复: 3

怎么我改变了hostname,/etc/hosts 没有变化?

[复制链接]
发表于 2003-10-16 19:21:12 | 显示全部楼层 |阅读模式
我是用hostname命令改变的.

那/etc/hosts怎么没变,它用在那里的,

我有在/etc/rc.conf改了hostnmen那/etc/hosts还是没变.

莫名其妙:ask :ask
发表于 2003-10-16 19:55:58 | 显示全部楼层
sysinstall 改就行了!

/etc/rc.conf, /etc/hosts
 楼主| 发表于 2003-10-16 20:26:47 | 显示全部楼层
呵呵!!谢谢.呵呵~又见你了.

奇怪,我用hostname改了hostname 重起.  是/etc/rc.conf的hostname.

看来是以/etc/rc.conf 的为准,用hostname,,是别名吧.

/etc/hosts的也是别名.
发表于 2003-10-16 20:26:48 | 显示全部楼层
要同时把两个都改了,要不然系统会检测不到DNS,启动某些程序时会非常慢的,
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表