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