centos 7 服务启动 停止

Stop service:

systemctl stop httpd

Start service:

systemctl start httpd

Restart service (stops/starts):

systemctl restart httpd

Reload service (reloads config file):

systemctl reload httpd

List status of service:

systemctl status httpd

chkconfig service on:

systemctl enable httpd

chkconfig service off:

systemctl disable httpd

chkconfig service (is it set up to start?)

systemctl is-enabled httpd

chkconfig –list (shows what is and isn’t enabled)

systemctl list-unit-files --type=service

你可能感兴趣的:(centos 7 服务启动 停止)