管理Ubuntu的服務
查詢開機啟動的服務
#service —status-all
開機時是否自動啟動nginx
#sudo systemctl enable nginx
#sudo systemctl disable nginx
檢查開機是否自動啟動
#systemctl is-enabled nginx
查詢服務的狀態
#sudo systemctl status nginx
啟動與關閉服務
#sudo systemctl start nginx
#sudo systemctl stop nginx