Control of system Services
1.systemd
System initialization program, the first process that the system starts, the PID is 1
2.systemctl command
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9C/9E/wKioL1lzTYGDJtLKAADgtFoHNGc088.png "title=" Screenshot from 2017-07-22 21-04-27.png "alt=" Wkiol1lztygdjtlkaadgtfohngc088.png "/>
Systemctl list-units List The status of the current system service
Systemctl List-unit-files lists the service's boot status
Systemctl status sshd View the state of the specified service
Systemctl stop sshd shuts down the specified service
Systemctl start sshd to start the specified service
Systemctl Restart sshd New START service
Systemctl enable sshd to set the specified service to start
Systemctl Disable sshd settings specify service shutdown
Systemctl Reload SSHD enables the specified service to be loaded from the new configuration
Systemctl list-dependencies sshd View dependent relationships for specified services
Systemctl Mask sshd freezes the specified service
Systemctl unmask sshd Enable service
Systemctl Set-default Multi-user.target Power-on does not turn on graphics
Systemctl set-default graphical.target boot up graphics
Setterm Text Interface Setting color
3. Service Status
Systemctl Status Service Name
Loaded # system service has been initialized to complete, loaded configuration
Active (running) is having one or more programs executing in the system,
# VSFTPD is this pattern
Atcive (exited) only performs a regular service,
# There are no programs in the system at this time.
Atcive (Waiting) is being executed.
# and wait for other events to continue
Inactive service shutdown
enbaled Service boot up
Disabled service boot not self-starter
Static service boot entry is not managed
Failed System Configuration Error
Masked frozen state
System service system services in Linux