第一、啟動、終止、重啟
#systemctl start httpd.service #啟動
#systemctl stop httpd.service #停止
#systemctl restart httpd.service #重啟
第二、設置開機啟動/關閉
#systemctl enable httpd.service #開機啟動
#systemctl disable httpd.service #開機不啟動
第三、檢查httpd狀態
#systemctl status httpd.service
另外,是Linux系統中包括的比較齊全的服務的說明及是否需要啟動的說明
時間的問題沒全部弄,先把地址放這里,有需要在來看
blog.csdn.net/skysem1/article/details/86771160