Linux Startup level

Source: Internet
Author: User

LinuxRunning level

Enter as AdministratorLinux, Modify the file:/Etc/inittab

Find"ID:5:Initdefault:"5YesX-Window, Which is the default running level

LinuxIt runs at a certain level after startup.,These running levels are listed below:

0System stopped

1Single User System, no login required

2Multi-user system but not supportedNFS, Command line mode Login

3Full multi-user mode,Logon in Command Line Mode

4Unused

5x11Graphical mode, graphical mode Login

6Restart the system

You can/Etc/initabFile.0-6Level comments,CodeSection:

# Default runlevel. The runlevels used by RHS are:

#0-halt (do not set initdefault to this)

#1-Single User Mode

#2-multiuser, without NFS (the same as 3, if you do not have networking)

#3-full multiuser Mode

#4-unused

#5-X11

#6-Reboot (do not set initdefault to this)

1.Level0

The system stops. Do not set this level to the default mode. Otherwise, the system stops automatically after each startup and cannot enter.

This running level is mainly used to close the task.Rc0.dThe connection commands in the directory are at this level. When the command is disabled, these commands are executed one by one. They will kill all processes, shut down virtual memory and swap files, unload file systems, and swap partitions.

Shutdown operation onDoSLower andLinuxIs different. InDoSAt the prompt, you can safely turn off the power. HoweverLinuxYou cannot do this.LinuxWhen the file system is started, it is loaded and uninstalled when it is disabled. This difference is exactlyLinuxPowerful features.

InLinuxTo run the following command:ShutdownAdd parameters to shut down, restart the computer, or press the hotkey"CTRL"+"ALT"+"DelTo restart.

2.Level1

Single User mode. This mode allows only one user to log on from a local computer.Rc1.dAll files in the directory are connected to the running level. This operation level is generally used for system management and maintenance.,For exampleLinuxUpgrade the system and install new software.

In this mode, only the administrator can log on, but other users cannot log on. Because the file system is loaded but the network is not loaded at startup, you cannot log on through the network.

3.Level2

Multi-user mode. You can log on through the network. This mode and mode are not supported.3Yes,Rc2.dAll files in the directory are connected to this level.

4.Level3

Full multi-user mode. This is the default running mode, in which all Network ServicesProgramRun together.Rc3.dFiles under the directory are connected to this level.

5.Level4

Unused mode,Rc4.dDirectory. This level is a custom running level, which can be defined by the root user. To run this level, you mustRc3.dDirectory, just like otherRC *. dDirectory, and specify whether to start or stop the process.

6.Level5

InLinuxRunXWindowThis level is used. At this levelNamedAnd level3Different, the rest are the same.

7.Level6

This is the running level of the restart system.Rc6.dDirectory. The connection and level in this directory are as follows:0InRc0.dThe connections under are basically the same. The difference is that although they all executeHalt(Close) command,HaltThe passed parameters are different.6Can restart 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.