yum groupinstall "X Window System"
yum groupinstall "GNOME Desktop" "Graphical Administration Tools"
更新系统的默认运行级别
systemctl get-default #获取当前系统运行形式,会显示multi-user.target(命令行终端),或者:graphical.target
systemctl set-default graphical.target #设置默认启动为图形界面,reboot后界面会自动是图形窗口了。
systemctl set-default multi-user.target #换回命令界面启动