systemctl实例
2019-04-24systemctl 经常用到,在centos 7.x和debian 8.x都有此命令。
systemctl enable sshd
systemctl restart sshd
systemctl --failed
systemctl list-units
查询服务哪些有效
systemctl list-units --type=service
systemd-cgls 以树形列出正在运行的进程,它可以递归显示控制组内容
systemctl show sshd.service|grep Path 获取服务文件
systemctl kill crond