The SYSTEMCTL command is the System Service Manager directive, which actually combines the two commands of service and Chkconfig. I will not introduce the previous, only the new instructions, as follows:
| Task |
Instructions |
| Make a service start automatically |
Systemctl Enable Httpd.service |
| Make a service not start automatically |
Systemctl Disable Httpd.service |
| Check service status (detail) |
Systemctl Status Httpd.service (service details) |
| Check Service status |
Systemctl is-active Httpd.service (show whether active only) |
| Show all started services |
Systemctl list-units--type =service |
| Start a service |
Systemctl Start Httpd.service |
| Stop a service |
Systemctl Stop Httpd.service |
| Restart a service |
Systemctl Restart Httpd.service |
recently contacted a lot of things, and suddenly found that they have not known the knowledge of the Linux system, need to strengthen.