yum -y groupinstall “X Window System”(安装基础环境)yum -y groupinstall “GNOME Desktop”(安装桌面)reboot(重启) #无法正常重启,建议多启动几次systemctl set-default graphical.target(设置图形启动)
想要重新变为文字界面启动输入下面语句:systemctl set-default multi-user.target(设置文字启动)