Centos8 安装桌面环境
执行
dnf groupinstall "Server with GUI"
安装图形化界面,然后
systemctl set-default graphical #*设置开机启动图形桌面*
然后重启机器
Centos7 安装桌面环境
yum -y groups install "GNOME DESKTOP" "Graphical Administration Tools"
systemctl set-default graphical.target
reboot