systemctl簡單用法

#啓動一個服務
systemctl start postfix.service
#關閉一個服務
systemctl stop postfix.service
#重啓一個服務
systemctl restart postfix.service
#顯示一個服務的狀態
systemctl status postfix.service
#在開機時啓用一個服務
systemctl enable postfix.service
#在開機時禁用一個服務
systemctl disable postfix.service
#查看服務是否開機啓動
systemctl is-enabled postfix.service
#查看已啓動的服務列表
systemctl list-unit-files|grep enabled
#查看啓動失敗的服務列表
systemctl --failed
#重新加載service文件
systemctl daemon-reload
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章