Runlevel and shutdown-Linux Enterprise Application-Linux server application information. The following is a detailed description. 1. runlevel
From the start to start of liunx, several different stages of liunx are called runlevel. Similarly, the shutdown may experience several other runlevels. It is similar to the normal mode, safe mode, and command line mode when windows is started.
Start or close some services at each runlevel and place them in etc/rc. d/rc ?. D or ect/rc ?. D below
There are usually eight runlevels:
0 -- halt the system
1 -- single user mode
2 -- basic multi user mode
3 -- multi user mode
5 -- multi user mode with gui
6 -- reboot the system
S, s single user mode
Most liunx desktops default is runlevel 5
In most linux Server versions, the default value is runlevel 3.
Runlevel 1, 2 output debugging is rarely used
S and s are not directly used by users. They are prepared for 1.
You can use the. init tool to switch to runlevel during idle time. You can switch to runlevle unconsciously during shutdown or startup. Call 0 or 6 to shut down all running processes.
Ii. shutdown command
Halt: the system administrator has the permission to use it. If the system runlevel is 0 or 6, it is disabled; otherwise, shutdown-h is replaced.
Turn off the power after halt-p shuts down the system
Shutdown-h shut down the system and turn off the power
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