1
2
3
4
5
6
7
yum groups list 

yum groupinstall "Server with GUI"

systemctl get-default
systemctl set-default graphical.target

重启即可生效

如果不想重启,可以执行

1
nohup startx &