linux systemctl command

The systemctl command is a system service manager command that actually combines the two commands service and chkconfig together.

Task old order new order
make a service start automatically chkconfig --level 3 httpd on systemctl enable httpd.service
Make a service not start automatically chkconfig --level 3 httpd off systemctl disable httpd.service
Check service status service httpd status systemctl status httpd.service(Service Details) systemctl is-active httpd.service(Only show if Active)
show all started services chkconfig --list systemctl list-units --type=service
start a service service httpd start systemctl start httpd.service
stop a service service httpd stop systemctl stop httpd.service
restart a service service httpd restart systemctl restart httpd.service

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325775218&siteId=291194637