Monday, August 19

How to change runlevel in linux or centos 6

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)

No comments:

Post a Comment

:: Linux - Legends ::