1)使用hostname命令设置新的host name与/etc/hosts本机hostname一致

#hostname 本机hostname

具体可以查看:/etc/hosts和//etc/sysconfig/network文件

 

2)重启网络服务

# /sbin/service network restart

相关文章: