Centos7修改主机名查看主机名、内核信息uname -a查看系统版本cat /etc/redhat-release修改主机名hostnamectl set-hostname 新主机名 # 重启生效 reboot