Detailed CentOS 7 service control and optimization of the startup process

A service control and switching run level
1, the service control
common service control type
start start
stop stop
restart restart (caution)
reload reload, without stopping the service [common]
status to view the status of
the boot-level view of the system
Detailed CentOS 7 service control and optimization of the startup process
common systemd power management command
Detailed CentOS 7 service control and optimization of the startup process

2, the switching operation level
1), run-level view of the system
command: runlevel
Detailed CentOS 7 service control and optimization of the startup process
run level 2), the switching system
command: systemctl isolate multi-user.target or init 3 (terminal to switch the character Interface)
Detailed CentOS 7 service control and optimization of the startup process
command: systemctl isolate graphical.target or init 5 (graphical user interface switching)
Detailed CentOS 7 service control and optimization of the startup process

We modify the default login screen for the character interface
Detailed CentOS 7 service control and optimization of the startup process

2, services that are loaded automatically optimize boot
1), modified by the method of pseudo-terminal
order: ntsysv
Detailed CentOS 7 service control and optimization of the startup process
Detailed CentOS 7 service control and optimization of the startup process

2), modify the command
command: systemctl disable sshd.service (Prohibition start running sshd)
systemctl enable sshd.service (start running sshd)
Detailed CentOS 7 service control and optimization of the startup process

Guess you like

Origin blog.51cto.com/14449528/2432455