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

 

如果重啟后還是沒進入圖形界面,可能系統里沒有安裝,使用如下命令安裝即可:

yum groupinstall -y "GNOME Desktop"

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM