命令行安装图形化
linux7以上安装图形化
yum groupinstall -y "GNOME Desktop" "Graphical Administration Tools"
systemctl get-default
systemctl set-default graphical.target
systemctl get-default
yum groupremove -y "GNOME Desktop" "Graphical Administration Tools"
linux6 安装图形化
yum -y groupinstall "Desktop"
yum -y groupinstall “Chinese Support”
[root@localhost ~]# grep initdefault /etc/inittab
# 0 - halt (Do NOT set initdefault to this)
# 6 - reboot (Do NOT set initdefault to this)
id:3:initdefault:
[root@localhost ~]# vi /etc/inittab
[root@localhost ~]# grep initdefault /etc/inittab
# 0 - halt (Do NOT set initdefault to this)
# 6 - reboot (Do NOT set initdefault to this)
id:5:initdefault: