systemctl学习

systemctl 学习

1.启动蓝鲸某个模块所有服务

systemctl start bk-paas.target

2.启动模块单个服务

systemctl start bk-paas-(模块名)

3.target服务,使用systemctl list-dependencies bk-(模块名).target

systemctl list-denpendencies bk-cmdb.target 

4.查看服务的启停命令配置

systemctl cat bk-cmdb-admin.service 

5.查看服务状态

systemctl status bk-cmdb-admin.service 
systemctl status -n0 bk-admin-admin.service 

6.查看错误服务状态

systemctl list-units --failed