這篇博文轉存於http://linux.51yip.com/search/systemctl
感謝樓主的知識分享!!!
# systemctl #輸出已激活單元 # systemctl list-units #輸出已激活單元 # systemctl --failed #輸出運行失敗的單元 # systemctl list-unit-files #查看所有已安裝服務 # systemctl start nginx #啓動nginx # systemctl stop nginx #停止nginx # systemctl restart nginx #重啓nginx # systemctl reload nginx #重新加載nginx配置 # systemctl status nginx #輸出nginx運行狀態 # systemctl is-enabled nginx #檢查nginx是否配置爲自動啓動 # systemctl enable nginx #開機自動啓動nginx # systemctl disable nginx #取消開機自動啓動nginx # systemctl help nginx #顯示nginx的手冊頁 # systemctl daemon-reload #重新載入 systemd,掃描新的或有變動的單元 # systemctl reboot #重啓 # systemctl poweroff #退出系統並停止電源 # systemctl suspend #待機 # systemctl hibernate #休眠 # systemctl hybrid-sleep #混合休眠模式(同時休眠到硬盤並待機 # systemctl isolate graphical.target #等價於telinit 3 或 telinit 5