CentOS 7.0 systemctl instructions
Centos 7.0 introduces many features, and it seems that the use of the sytemctl command is relatively large.
Systemd usage:
Systemd Service Management Program
Systemctl is the most important tool. It integrates the functions of service and chkconfig. You can use it to enable or disable services permanently or only in the current session.
Run the following command to list running services or other: systemctl
For more information, see man systemctl ). Systemd-cgls lists running processes in a tree. It recursively displays the content of a given control group. For more information, see systemd-cgls manual.
How do I start, disable, enable, and disable a service?
Run a service:
Systemctl start network. service:
Systemctl stop network. service restart network service:
Systemctl restart network. service
Displays the status of a service (whether running or not): systemctl status network. service
Enable a service at startup: systemctl enable network. service
Disable a service at startup: systemctl disable network. service
Check whether the service is started when it is started: systemctl is-enabled network. service; echo $? Or chkconfig
Use the systemctl command to remember start, stop, restart, status, enable, disable, is-enabled. It can be used very well!
Systemd to view the auto-Start Program
Equivalent to chkconfig -- list
Ls/etc/systemd/system/multi-user.target.wants/