步骤一:修改etc/hosts文件内容为
[root@kypt01 /]# cd etc
[root@kypt01 etc]# cat hosts
127.0.0.1 localhost kypt01 localhost4 localhost4.localdomain4
::1 localhost kypt01 localhost6 localhost6.localdomain6
步骤二:修改etc/sysconfig/network文件内容为
[root@kypt01 etc]# cat sysconfig/network
NETWORKING=yes
HOSTNAME=kypt01
[root@kypt01 etc]#
步骤三:重启Linux系统
reboot
Linux默认主机名为 localhost.localdomain
英文名:kingwang
& Email :kingstudy@vip.qq.com