技术改变生活

博客园 首页 新随笔 联系 订阅 管理

[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的内容并保存,重启即可

posted on 2017-03-20 18:02  小阿峰  阅读(685)  评论(0编辑  收藏  举报