Modifying the Linux Run level

Source: Internet
Author: User

1.7 Operating levels under Linux

0 System shutdown mode, the system default operation level cannot be set to 0, otherwise it will not start normally, the machine shuts down.

1 single-user mode, root privilege, for system maintenance, prohibit remote login, like Safe mode login under Windows.

2 Multi-user mode, no NFS network support.

3 full multi-user text mode with NFS, login to console command line mode.

4 The system is unused, reserved for general use, and in some special cases it can be used to do something. For example, you can switch to this mode to do some setup when your laptop's battery is running out.

5 graphical mode, after landing into the graphics

6 Restart mode, the default run level cannot be set to 6, otherwise it will not start normally. Running the init 6 machine will restart.

2. Change the operating level

2.1. Raspberry Pi/centos

1) Run-time modification, conversion to 3-level operation mode

3

2) Specify the operating mode when booting up

sudo vim/etc/inittab

Id:x:initdefault: This line changed to Id:3:initdefault:

3. View Run Level

$ runlevel 2 3

2 and 3 are just the runlevel, and now the current run level

Modifying the Linux Run level

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.