修改Linux主机名

1. 修改/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=test2.intel.com
2. hostname test2.intel.com

或者
sysctl kernel.hostname=test2.intel.com
或者
echo test2.intel.com> /proc/sys/kernel/hostname

你可能感兴趣的:(修改Linux主机名)