7 runlevels of Centos system

Source: Internet
Author: User
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.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.