前言:
眼前小伙伴们对“centos卸掉安装的程序”大概比较关注,看官们都需要分析一些“centos卸掉安装的程序”的相关知识。那么小编同时在网摘上搜集了一些关于“centos卸掉安装的程序””的相关知识,希望姐妹们能喜欢,朋友们快快来了解一下吧!如何安装GNOME
只需要三步:
sudo yum -y groups install "GNOME Desktop"
sudo systemctl set-default graphical.target
sudo reboot
如何卸载GNOME
sudo yum groupremove "GNOME Desktop"
查看当前所处模式:
查看系统的2种启动模式:
vi /etc/inittab
//查询当前的默认设置:
systemctl get-default
//启动切换图形化界面:
startx
//设置默认启动为图形化界面:
systemctl set-default graphical.target
//设置默认启动为命令行界面:
systemctl set-default multi-user.target
//命令行界面切换到图形界面:
init 5
//图形界面热切换到命令行界面:
init 3
说明文件:
[root@localhost test]# cat /etc/inittab
# inittab is no longer used when using systemd.
# ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
# Ctrl-Alt-Delete is handled by /usr/lib/systemd/system/ctrl-alt-del.target
# systemd uses 'targets' instead of runlevels. By default, there are two main targets:
# multi-user.target: analogous to runlevel 3
# graphical.target: analogous to runlevel 5
# To view current default target, run:
# systemctl get-default
# To set a default target, run:
# systemctl set-default TARGET.target
标签: #centos卸掉安装的程序