CentOS修改主机名,区分大小写 先查看自己的主机名 hostname 设置主机名 hostnamectl set-hostname --static T-onetwoone 重启服务 init 6 在再次查看主机名