本教程为为centos最小化安装后安装图形化界面,实例基于centos7.9版本编写。
yum更新
yum update
安装gnome
yum groupinstall "GNOME Desktop" "Graphical Administration Tools" -y
设置运行级别
//查看当前默认模式,一般为multi-user.target
systemctl get-default
//设置默认模式为graphical.target
systemctl set-default graphical.target 修改为图形界面模式
重启系统
reboot