#ls /usr/lib/systemd/system //查看系统中所有的unit类型 #systemctl list-units //列出正在运行的unit #systemctl list-units --all //列出所有,包括失败的或者inactive的 #systemctl list-units --all --state=inactive //列出inactive的unit #systemctl list-units --type=service //列出状态为active的service #systemctl is-active crond.service //查看某个服务是否为active