centos 7 中的類似 "service httpd start " 服務啟動,停止烧栋,重啟指令写妥, “service” 已更改為 “systemctl” 。具體示例如下:
systemctl start httpd.service /啟動Apache httpd
systemctl restart httpd.service /重新啟動
systemctl stop httpd.service /停止服務
同樣類似 "chkconfig httpd on" 設置服務開機啟動項劲弦,指令已更改為 “systemctl enable” 耳标,具體示例如下:
systemctl enable httpd.service /開機啟動httpd
systemctl disable httpd.service /禁止開機啟動httpd