yum groupinstall -y "GNOME Desktop" "Graphical Administration Tools"
ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target
- 设置默认图形界面启动
ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
startx
切换成命令行启动:
ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target