linux - How to see if a service is running on Linux?
问题描述
I'm using systemctl to setup and run my serviced on a Linux Redhat. How can I check if a service is in running state?
I can use
systemctl is-active <service name>
to check if the service is is active or not. But I would like to check if the service is in the substate running.
解决方案
推荐阅读
- javascript - 专门删除脚本标签
- jquery - 在ios中从全屏切换到正常模式时,视频js会暂停
- spring - Spring MVC 和 Hibernate Web 应用程序启用延迟加载无法正常工作
- python - 如何在传递多个参数的pycharm上调试python文件?
- docker - 在 centos 中创建 Docker 映像失败
- javascript - 在ajax调用成功后复制到剪贴板,在Chrome中有效,但在Firefox中无效
- database - 如何在 Laravel 数据库中获取所有国家与城市和州
- angular - 如何在 Angular 6 中编辑环境变量而不重建?
- sql - 引用表中没有与外键中的列列表匹配的主键或候选键
- javascript - document.execCommand("copy") 不适用于所有浏览器