systemctl
控制系统 systemd 服务管理器。
$ systemctl status
示例
# 查看服务状态 systemctl status nginx # 检查是否运行中 systemctl is-active nginx # 检查是否失败 systemctl is-failed nginx # 查看服务详细信息 systemctl show nginx
控制系统 systemd 服务管理器。
示例
# 查看服务状态 systemctl status nginx # 检查是否运行中 systemctl is-active nginx # 检查是否失败 systemctl is-failed nginx # 查看服务详细信息 systemctl show nginx