#systemctl
#systemctl --all
#systemctl list-units --type=sokect
#systemctl list-units --type=service
type后面可以接的類型可以通過help查看
# systemctl -t help
Available unit types:
service
socket
target
device
mount
automount
snapshot
timer
swap
path
slice
scope。
命令大致有start,stop,restart,status,reload,enable,disable,is-enabled
#systemctl is-enabled xxx.service #查詢服務是否開機啟動
#systemctl enable xxx.service #開機運行服務
#systemctl disable xxx.service #取消開機運行
#systemctl start xxx.service #啟動服務
#systemctl stop xxx.service #停止服務
#systemctl restart xxx.service #重啟服務
#systemctl reload xxx.service #重新加載服務配置文件
#systemctl status xxx.service #查詢服務運行狀態
#systemctl --failed #顯示啟動失敗的服務
