1.1> 修改/etc/sysconfig/network文件,修改如下行(没有则添加) HOSTNAME=主机名 1.2> 在shell下运行"hostname 主机名" 1.3> 修改/etc/hosts 中的主机名