1. Introduction to Linux system operation levelsLinux has 7 run levels by default, and the Linux system runs at a specified run level at any time. The programs and services run at different operating levels are different, and the tasks to be completed and the goals to be achieved are also different. 0: Shut down. 1: Single-user mode, which can be imagined as the safe mode of the Windows system, is mainly used for system repair. 2: Incomplete command line mode (command line mode is the command interface), does not include NFS service (a service for sharing files between Linux systems). 3: Complete command line mode, which is a standard character interface (the command line mode we have been using before is this mode). 4: System reserved. 5: Graphics mode. 6: Restart. 2. Check the run level In Linux system, you can use The command is as follows: # N represents the previous level before entering this level. 3 represents the current level [root@localhost ~]# runlevel N 3 illustrate: 3. Modify the current system's operating level Just use the The command is as follows: Enter the graphical interface. Of course, you can only enter it if the Linux system has installed the graphical interface. illustrate: If we have not installed the graphical interface and execute the However, when we query the current Linux system's run level and execute the However, please note that using the 4. System default run levelNow that we have learned what the operating level of the Linux system is, let's turn our attention back to the system startup process. The system's default run level is the run level that the system enters directly after startup. What is said above is to check the current running level of the system, rather than the default system running level. The default operation level of the Linux system is configured in the As you can see from the picture above, a lot of the information inside is put into other different files. illustrate: In previous Linux distributions, such as Red Hat 5 or earlier versions, the Therefore, in Red Hat 6, the only function of the Notice: The run level description in the figure below notes that levels 0 and 6 cannot be set as the system default run level, and the system default run level can only be selected from 1-5. However, it is recommended that the default operating level of the system be 3 or 5. Other levels are either shutdown and restart, or reserved or single user, and cannot be used as the default operating level of the system. 5. /etc/rc.d/rc.local file description The The contents of the You can see that the In other words, every time the system starts up, it looks for this very hidden file, so the modification time of this file is the system startup time. In other words, the purpose of this command is to obtain the system startup time. Also note that the The relationship between This is the end of this article about the detailed introduction of Linux system operation levels. For more relevant Linux operation levels, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: The leftmost matching principle of MySQL database index
>>: 3 solutions to make your website support old versions of IE6, 7, 8, and 9 browsers
Writing a Dockerfile Taking the directory automat...
Preface As a DBA, you will often encounter some M...
Preface When the system space usage is too large ...
This article describes how to configure a seconda...
[LeetCode] 182.Duplicate Emails Write a SQL query...
This article shares the specific code of JavaScri...
First: Installation of MySQL Download the MySQL s...
SMIL adds support for timing and media synchroniz...
This tutorial shares the installation and configu...
Recently, when I was sorting out the details of d...
Table of contents Preface: Kind tips: variable 1....
With the development of Internet technology, user...
Table of contents 01 Container consistency 02 Con...
Preface: I heard a long time ago that MySQL 8.0 s...
Pure js implements a single-click editable table ...