首页 > 其他 > 详细

systemctl命令列出所有服务

时间:2021-02-07 18:20:14      阅读:67      评论:0      收藏:0      [点我收藏+]

systemctl是Systemd 的主命令,可用于管理系统。

列出所有已经加载的systemd units

systemctl
systemctl | grep docker.service

列出所有service

systemctl list-units --type=service
systemctl --type=service

列出所有active状态(运行或退出)的服务

systemctl list-units --type=service --state=active

列出所有正在运行的服务

systemctl list-units --type=service --state=running

列出所有正在运行或failed状态的服务

systemctl list-units --type service --state running,failed

列出所有enabled状态的服务

systemctl list-unit-files --state=enabled

systemctl命令列出所有服务

原文:https://www.cnblogs.com/zjz20/p/14386037.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!