原帖由 meidinlei 于 2009-5-16 13:37 发表
另外第四步的时候,这里的localhost.localdomain 应该是什么?
我没有修改这里
4:进入root用户
用gedit 修改 /etc/csh.cshrc 文件
添加到# csh configuration for all shell invocations.下一行
加入内容如下 ...
就是你的LINU的主机名,修改3个地方就可以了,然后把那个红色的字改成你修改后的名字就可以了。
修改主机名方法:(3个地方都要修改)
1. change hostname - good till nex reboot
#hostname [your_new_hostname]
2. change hostname - good after next reboot
edit /etc/sysconfig/network (RedHat)
3. change ip associated hostname - good till nex reboot
edit /etc/hosts
By finish the combination of 1, 2 and 3 steps you will change your hostname immediatly and permanently. |