[root@localhost ~]# hostnamectl set-hostname StorageSrv --static
[root@localhost ~]# bash
[root@StorageSrv ~]# vi /etc/hosts (将里面内容全部删除)
192.168.100.200 storagesrv.chinaskills.cn StorageSrv
[root@StorageSrv ~]# hostname -f
storagesrv.chinaskills.cn
其他设备跟上述类似