The CentOS system has 7 runlevel levels. The value 0 indicates that the system is down. The default running level cannot be set to 0. Otherwise, the system cannot start normally. the value 1 indicates that a single user is working, root permission, used for system maintenance. remote login is prohibited. operation Level 2: Multi-user status (no NFS). operation Level 3: full multi-user status (with NFS ), after logging on to the console, enter the command line mode running level
The CentOS system has seven runlevels)
Running Level 0: The system is down. The default running level cannot be set to 0. Otherwise, the system cannot start normally.
Running Level 1: Single-user working status, root permission, used for system maintenance, remote login prohibited
Running Level 2: Multi-user status (no NFS)
Running Level 3: full multi-user status (with NFS). log on to the console and go to the command line mode.
Operation Level 4: The system is not used and retained
Running Level 5: X11 console. log on to the GUI
Running level 6: The system is shut down and restarted normally. the default running level cannot be set to 6. Otherwise, the system cannot start normally.
Principle of running level (Ubuntu instructions):
1 There are many server script programs under the/etc/init. d Directory, which are generally called services)
2. there are 7 directories named rcN. d under/etc, corresponding to 7 running levels of the system
3 rcN. the d directory contains some symbolic link files that all point to init. the service script file under the d Directory. the naming rule is K + nn + service name or S + nn + service name. The nn is a double digit.
4. the system will enter the corresponding rcN. d directory based on the specified running level, and retrieve the linked files under the Directory in order of file name
For files starting with K, the system terminates the corresponding service.
For files starting with S, the system starts the corresponding service
5. run runlevel
6. use init N to enter other running levels.
7. In addition, init0 indicates shutdown, and init 6 indicates restarting the system.