一、啟動服務
systemctl start test.service
二、停止服務
systemctl stop test.service
三、重啟服務
systemctl restart test.service
四、查看服務狀態
systemctl status test.service
五、設置開機自啟動服務
systemctl enable test.service
六、禁止開機自啟動服務
systemctl disable test.service
七、查看是否開機自啟動
systemctl is-enabled test.service
八、查看已啟動服務列表
systemctl list-unit-files|grep enabled
九、查看啟動失敗服務列表
systemctl --failed