0

Runlevels in centos 7

Hi, i have familier with runlevels in centos 6, there we must edit /etc/inittab file to change to any runlevel but how to do the same on centos 7? there i found no entry in /etc/inittab file and it' s seems does' nt work.

CentOS runlevel command Linux Add a comment
cameron
asked Jun 02 2018

Answer

0

In Centos 7 there is no use of /etc/inittab file, instead we can use targets, because systemd no more uses the /etc/inittab file. If you want to change your current runlevel you must use systemctl command. So you can use the below command to temporarily change your run level.

systemctl isolate runlevel1.target

And use the below command to permanently set your runlevel

systemctl set-default runlevel1.target
Add a comment
parthiban
asked Jun 10 2018
edited Oct 05 2018
Post your Answer