防火牆:iptables Apache服務名稱:httpd MySQL服務名稱:mysqld VSFTP服務名稱:vsftpd
<!--CentOS7新指令-->
使某服務 自動啟動 systemctl enable httpd.service
使某服務 不自動啟動 systemctl disable httpd.service
檢查服務 狀態 systemctl is-active httpd.service(僅顯示是否 Active)systemctl status httpd.service(服務詳細信息)
顯示所有 已啟動的服務 systemctl list-units --type=service
啟動某服務 systemctl start httpd.service
停止某服務 systemctl stop httpd.service
重啟某服務 systemctl restart httpd.service