About centos7 system run level

About centos7 system run level we know, the previous version centos6 and the system run level to set up and controlled by the / etc / inittab file, but in centos7, set this file will not affect the operation of the system level, which centos7 also part of the larger changes in characteristics.
Here, we introduce content-level aspects of running the system.

1. Run the correspondence between the level

    Level systemctl target the init
    0 shutdown.target
    . 1 emergency.target
    2 rescure.target
    . 3 multi-user.target
    . 4 no
    . 5 graphical.target
    . 6 None

 

2. Run level settings

1) Syntax: systemctl [Command] [unit.target]
2) and command parameters:

  • command section

get-default: Get the current target;

set-default: the default specified target level is set to run;

isolate: to switch to the specified run level.

  • unit.target parts: Part 1 Run level section given above

3. commonly associated command run level
1) systemctl

systemctl get-default: Gets the current run level;

systemctl set-default multi-user.target: The default run level is set to mulit-user;

systemctl isolate multi-user.target: without rebooting the system will switch to run-level mulit-user;

systemctl isolate graphical.target: without rebooting the system will switch to run-level graphics mode.
2) Other

runlvel: returns the result, the first number is the level prior to operation, after running a number of current level;

init 5: current operating level switch to 5 (graphics mode).
   


 

Published 169 original articles · won praise 46 · views 190 000 +

Guess you like

Origin blog.csdn.net/LHDZ_BJ/article/details/83180449