Linux commands with systemctl management services

systemctl start foo.service start the service
systemctl restart foo.service restart the service
systemctl stop foo.service stop service
systemctl reload foo.service reload the configuration file (not termination of service)
systemctl Status foo.service check the service status

systemctl enable foo.service boot from the start
systemctl disable foo.service not boot from the start
systemctl is-enabled foo.service to see whether a particular service is to boot from the start
to start systemctl list-unit-files --type = service to view at various levels of service and disabling case

.service attention after the foo service name can be omitted

Guess you like

Origin www.cnblogs.com/zlw-xyz/p/12000727.html