unit介绍

unit介绍
#ls /usr/lib/systemd/system //查看系统中所有的unit类型
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

猜你喜欢

转载自blog.51cto.com/13669226/2115750