1、yum -y groupinstall "X Window System"
2、yum groupinstall "GNOME Desktop" "Graphical Administration Tools"
3、yum install -y lightdm
4、修改配置vi /etc/lightdm/lightdm.conf
enbaled=true
port=177
5、切换程序,执行命令:systemctl disable gdm && systemctl enable
将Display Manager切换为lightdm, 成功会出现如下界面
6、systemctl start lightdm (启动后,阿里云VNC就会有界面,关闭就无界面)
除以上6步,无其他任何操作