In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Brief introduction to centos7 system runlevel We know that in centos6 and previous versions, the system runlevel is set and controlled through the / etc/inittab file, but in centos7, the setting of this file will not affect the system runlevel, which is also a feature that has changed a lot in centos7.
Next, let's introduce the running level of the system.
1. Run-level correspondence
Init level systemctl target
0 shutdown.target
1 emergency.target
2 rescure.target
3 multi-user.target
4 none
5 graphical.target
6 none
two。 Run level settin
1) Syntax: systemctl [command] [unit.target]
2) commands and parameters:
Command part
Get-default: get the current target
Set-default: sets the default runlevel to the specified target
Isolate: switch to the specified run level.
Unit.target section: for the run level given in section 1 above
3. Common runlevel related commands
1) systemctl
Systemctl get-default: get the current runlevel
Systemctl set-default multi-user.target: set the default runlevel to mulit-user
Systemctl isolate multi-user.target: switch the runlevel to mulit-user without rebooting the system
Systemctl isolate graphical.target: switch the runlevel to graphical mode without rebooting the system.
2) other
Runlvel: in the returned result, the first number is the previous run level, and the second number is the current run level
Init 5: switches the current runlevel to 5 (graphical mode).
.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.