Change Run-Level2021/02/23 |
If you would like to change System Run-Level, set like follows.
|
|
[1] | Run-Level is set with linking to [/etc/systemd/system/default.target]. For example, the default setting without GUI is set like follows. |
[root@dlp ~]#
systemctl get-default multi-user.target
[root@dlp ~]#
[root@dlp ~]# ll /etc/systemd/system/default.target lrwxrwxrwx. 1 root root 41 Feb 18 15:50 /etc/systemd/system/default.target -> /usr/lib/systemd/system/multi-user.target ll /lib/systemd/system/multi-user.target -rw-r--r--. 1 root root 532 Jun 22 2018 /lib/systemd/system/multi-user.target |
[2] | For example, if you'd like to change Run-Level to Graphical-Login, set like follows. |
[root@dlp ~]#
systemctl set-default graphical.target Removed /etc/systemd/system/default.target. Created symlink /etc/systemd/system/default.target -> /usr/lib/systemd/system/graphical.target.
[root@dlp ~]#
[root@dlp ~]# systemctl get-default graphical.target ll /etc/systemd/system/default.target lrwxrwxrwx. 1 root root 40 Feb 23 08:52 /etc/systemd/system/default.target -> /usr/lib/systemd/system/graphical.target |
Sponsored Link |