解决问题: 1.修改/etc/sysconfig/network 修改 hostname=xxx, 不能有下划线 2.修改/etc/hosts 添加刚刚 修改hostname的名字. 3.reboot 重启 4.重新启动active