Posts

Showing posts with the label runlevel

How to change default run-level in RHEL or CentOS 7

How to change default run-level in RHEL or CentOS 7 There is change in process to setup default run-levels from init 3 (multi-user) to init 5 (Graphical) and vice versa. If we see "/etc/inittab" file it's been changed from RHEL/CentOS 6.x to 7.x. [root@localhost ~]# cat /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 # To check what is the default run-level configured currently : [root@localhost ~]# ls -l /lib/systemd/system/default.target l...