[xiaofeng@localhost ~]$ vim /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
#

[xiaofeng@localhost ~]$


[root@localhost xiaofeng]# systemctl set-default graphical.target
Removed symlink /etc/systemd/system/default.target.
Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/graphical.target.

 

 

默认运行级别3:systemctl set-default multi-user.target

默认运行级别5:systemctl set-default graphical.target

Ubuntu的设置

直接修改文件/etc/X11/default-display-manager的内容并保存,重启即可

相关文章:

  • 2021-12-18
  • 2021-12-10
  • 2021-06-26
  • 2021-11-20
  • 2021-10-10
  • 2021-11-22
  • 2021-10-27
  • 2021-06-18
猜你喜欢
  • 2021-11-26
  • 2021-06-22
  • 2021-12-19
  • 2021-12-09
  • 2021-11-29
  • 2021-12-29
  • 2022-01-01
  • 2021-11-22
相关资源
相似解决方案