Centos 设置开机进图形界面/终端
Posted zoneofmine
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Centos 设置开机进图形界面/终端相关的知识,希望对你有一定的参考价值。
版本:CentOS 7
首先:
[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 # [root@localhost test]#
其中:
multi-user.target 代表命令模式
graphical.target 代表图形界面
使用如下命令可以查看当前所处模式:
[root@localhost test]# systemctl get-default
multi-user.target
使用如下命令修改为图形界面模式:
systemctl set-default graphical.target
以上是关于Centos 设置开机进图形界面/终端的主要内容,如果未能解决你的问题,请参考以下文章