In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.