安装&卸载CentOS图形化界面

安装

yum groupreinstall "GNOME Desktop" "Graphical Administration Tools" # 安装

ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target

systemctl set-default graphical.target

reboot # 重启

卸载

yum groupremove "GNOME Desktop" "Graphical Administration Tools" # 安装

ln -b /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target

systemctl set-default multi-user.target

reboot # 重启

你可能感兴趣的:(安装&卸载CentOS图形化界面)