View the running level of the CentOS Server

Source: Internet
Author: User

View the running level of the CentOS Server

Restart the test server using the command: shutdown now (forgot to add-h) causes Automatic restart and enters single-user mode. view the current system mode command: runlevel

Centos system:

[Root @ fisheye ~] # RunlevelN3

The RedHat series 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.

The default runlevel of Ubuntu is 2.

Yong @ test2 :~ $ RunlevelN2

Debian (ubuntu is based on debian) Linux has always been started with runlevel 2 by default, and the runlevel definition is different from redhat. The runlevel of debian is defined as follows:

0-Halt, shutdown mode

1-Single, Single-user mode

2-Full multi-user with display manager (GUI)

3-Full multi-user with display manager (GUI)

4-Full multi-user with display manager (GUI)

5-Full multi-user with display manager (GUI)

6-Reboot, restart

2 ~ There is no difference in level 5. They are in multi-user mode, which is different from general linux.

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.