CentOS 7.2 - 系统管理 - 列出全部service

列出全部enabled, active的service:
systemctl list-units --type=serviceide

列出全部service,不论active仍是inactive又或者是failed和not-found:
systemctl list-units --type=service --allcode

列出全部已安装的service,不论有没有运行,不论有没有设置为系统启动项,不论服务是否还有效:
systemctl list-unit-files --type=serviceit

备注:
通常安装的service file可能会有4中状态:class

  • enabled 安装了的,并会随系统启动而启动。
  • static Enabled服务启动时须要同时启动的依赖服务。
  • disabled 已安装,但不可随系统启动而同时启动的服务。
  • invalid 无效的
相关文章
相关标签/搜索