CentOS 7 running levels

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

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.