[CentOS 7.0] Change RunLevel
# show current setting
[root@dlp ~]#systemctl get-default
multi-user.target
[root@dlp ~]#ll /etc/systemd/system/default.target
lrwxrwxrwx. 1 root root 37 Jul 9 06:04 /etc/systemd/system/default.target -> /lib/systemd/system/multi-user.target
[2] For example, if you’d like to change the RunLevel to Graphical-login, set like follows.
[root@dlp ~]#systemctl set-default graphical.target
rm ‘/etc/systemd/system/default.target’
ln -s ‘/usr/lib/systemd/system/graphical.target’ ‘/etc/systemd/system/default.target’
# make sute the setting
[root@dlp ~]#systemctl get-default
graphical.target
[root@dlp ~]#ll /etc/systemd/system/default.target
lrwxrwxrwx 1 root root 36 Jul 9 21:55 /etc/systemd/system/default.target -> /lib/systemd/system/graphical.target
Recent Comments