cent7 /usr/lib/systemd/system/
systemctl enable crond.service #讓某服務開機啟動
systemctl disable crond.service #不開機啟動
systemctl status crond.service #查看服務狀態
systemctl start crond.service #啟動某服務
systemctl stop crond.service #停止某服務
systemctl restart crond.service #重啟某服務
systemctl is-enabled crond #查看某服務是否開機啟
systemctl enable crond.service #讓某服務開機啟動
systemctl disable crond.service #不開機啟動
systemctl status crond.service #查看服務狀態
systemctl start crond.service #啟動某服務
systemctl stop crond.service #停止某服務
systemctl restart crond.service #重啟某服務
systemctl is-enabled crond #查看某服務是否開機啟
2018-05-21
CentOS7下服務啟動:
啟動服務:
systemctl start httpd
停止服務:
systemctl stop httpd
重啟服務(先停止,后啟動):
systemctl restart httpd
重新加載(使用新的配置文件):
systemctl reload httpd
顯示服務狀態:
systemctl status httpd
啟動服務:
systemctl start httpd
停止服務:
systemctl stop httpd
重啟服務(先停止,后啟動):
systemctl restart httpd
重新加載(使用新的配置文件):
systemctl reload httpd
顯示服務狀態:
systemctl status httpd
2018-05-05