Sets the default startup level.
[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
#
# Define EMD uses 'targets' instead of runlevels. By default, there are two main targets:
#
# Multi-user.target: analogous to runlevel 3
# Graphical.tar get: analogous to runlevel 5
#
# To view current default target, run:
# Systemctl get-default
#
# To set a default target, run:
# Systemctl set-default TARGET.tar get
#
[Xiaofeng @ localhost ~] $
[Root @ localhost xiaofeng] # systemctl set-default graphical.tar get
Removed symlink/etc/systemd/system/default.tar get.
Created symlink from/etc/systemd/system/default.tar get to/usr/lib/systemd/system/graphical.tar get.
Default run level 3: systemctl set-default multi-user.target
Default running level 5: systemctl set-default graphical.tar get
Ubuntu settings
Directly modify the content of the file/etc/X11/default-display-manager and save the content. Restart the file.
.