In Linux, there are 7 runlevels: 0: The system is down. The default running level cannot be set to 0. Otherwise, the system cannot start normally. Level 1: the operating status of a single user, 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, go to command line mode run Level 4: The system is not used, and the run Level 5: X1 is retained.
Linux has 7 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.
Running principle:
1. There are many server script programs in the/etc/rc. d/init. d Directory, which are generally called services)
2. Under/etc/rc. d, there are sevenDirectory, 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 the order of file names
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. For other running levels, use init.N
7. In addition, init0 is shutdown, init6. restart the system.