修改linux主机名称hostname 首先查看hostname名称 [root@zhaofx /]# hostname zhaofx 设置新hostname [root@zhaofx /]# hostnamectl set-hostname newHostname