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.

cameron
asked Jun 1, 2018
1 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
View More
parthiban
answered Jun 10, 2018
Your Answer
||||
 
100:0