执行下面命令之前,请确认虚拟机网络是否正常,请在网络正常的情况下依次执行下面命令。
1、更新 yum 源
yum update
2、安装依赖
yum groupinstall "GNOME Desktop" "Graphical Administration Tools"
3、查看系统默认启动方式
systemctl get-default
4、修改系统默认启动方式
systemctl set-default graphical.target
5、再次检查系统默认启动方式
systemctl get-default
6、重启系统
reboot
7、重启后生效变成图形化界面
8、设置完成!!!