Thursday, April 9, 2015

Change the init level on Redhat Linux 7

# 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


[root@vmxdb01 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.1 (Maipo)

[root@vmxdb01 ~]# systemctl get-default
graphical.targt

[root@vmxdb01 ~]#  systemctl set-default multi-user.target
rm '/etc/systemd/system/default.target'
ln -s '/usr/lib/systemd/system/multi-user.target' '/etc/systemd/system/default.target'

[root@vmxdb01 ~]# systemctl get-default
multi-user.target