Difference between revisions of "Change Runlevel"

From Brian Nelson Ramblings
Jump to: navigation, search
(Created page with "==Do you need to change your CentOS systems run level?== =How to check your Current Run Level on your CentOS server= runlevel This will output something like 5 5 or ...")
 
Line 1: Line 1:
==Do you need to change your CentOS systems run level?==
 
  
=How to check your Current Run Level on your CentOS server=
+
= How to Change your Current Run Level and Default Run Level =
 +
 +
Ever notice that your system is run the GUI and you want to save resources, let turn it off
  
runlevel
+
== Changing your Current Run Level ==
  
This will output something like
+
init [0-6]
  
5 5
+
The default server installation should be
  
or
+
init 3
  
3 3
+
== Change your Run Level on Boot up ==
  
or a combination but the current runlevel will the the last digit
+
vim /etc/inittab
  
To change the run level type
+
Change it so it has
  
  init
+
  id:3:initdefault:
  
Followed by the runlevel you want
+
If you have a GUI it should be set to 5
  
0-6
 
  
Example -
+
= Runlevels =
  
init 3
+
0 – halt (Do NOT set initdefault to this)
 +
1 – Single user mode
 +
2 – Multiuser, without NFS (The same as 3, if you do not have networking)
 +
'''3 – Full multiuser mode'''
 +
4 – unused or Admin
 +
5 – X11
 +
6 – reboot (Do NOT set initdefault to this)

Revision as of 21:16, 10 February 2013

How to Change your Current Run Level and Default Run Level

Ever notice that your system is run the GUI and you want to save resources, let turn it off

Changing your Current Run Level

init [0-6]

The default server installation should be

init 3

Change your Run Level on Boot up

vim /etc/inittab

Change it so it has

id:3:initdefault:

If you have a GUI it should be set to 5


Runlevels

0 – halt (Do NOT set initdefault to this) 1 – Single user mode 2 – Multiuser, without NFS (The same as 3, if you do not have networking) 3 – Full multiuser mode 4 – unused or Admin 5 – X11 6 – reboot (Do NOT set initdefault to this)