7之后加入的新命令 修改主机名 nmcli g hostname "gyh" bash ##刷新 cat /etc/hostname ##发现修改成功主机名为gyh 查看端口占用情况 ss -anpt|grep 22 比yum更高级的安装 dnf -y install mariadb