linux 如何检察某项服务是否正在运行?

可以使用 systemctl status 服务名称  来进行检察,例如查看nginx 服务是否在运行,  systemctl status  nginx