一、查看/etc/inittab文件内容。

Centos8修改默认启动模式

 

二、通过文件查看可以看出,Centos8 只有两种启动模式

multi-user.target: analogous to runlevel 3 ,多用户,命令行模式,类似于runlevel3

graphical.target: analogous to runlevel 5 ,图形模式,类似于runlevel5 

三、查看当前启动模式,我目前是图形界面

[01:56:10 root@localhost ~]#systemctl get-default
graphical.target

四、修改启动模式为图形界面

  1、修改为命令行界面

systemctl set-default multi-user.target

  2、修改为图形化界面

systemctl set-default graphical.target

五、重启系统进入对应的模式

reboot

六、如果没安装图形界面是进不到图形界面的,安装图形界面

dnf groupinstall “Server with GUI”

或者

 dnf groupinstall “workstation”

 

相关文章:

  • 2022-12-23
  • 2022-01-01
  • 2021-08-15
  • 2021-03-28
  • 2022-01-05
  • 2022-02-01
  • 2022-02-02
  • 2021-07-02
猜你喜欢
  • 2021-11-13
  • 2022-02-07
  • 2021-12-11
  • 2021-10-26
  • 2021-08-21
  • 2021-08-24
  • 2022-12-23
相关资源
相似解决方案