How to Changing the default runlevel in CentOS 6.
Open /etc/inittab in the editor
#vim /etc/inittab
You will see line similar to the below on
id:5:initdefault:
You simply change the “5″ to the runlevel you desire.
Since my machine is a server I changed it to “3″
Save the file and exit.
:wq!
now run below command
#init 3 ( then go to command mode)
Open /etc/inittab in the editor
#vim /etc/inittab
You will see line similar to the below on
id:5:initdefault:
You simply change the “5″ to the runlevel you desire.
Since my machine is a server I changed it to “3″
Save the file and exit.
:wq!
now run below command
#init 3 ( then go to command mode)
This might be a good place to at least briefly mention how much the process has changed in Centos 7/8 with systemd.
ReplyDelete