【发布时间】:2012-08-23 18:00:36
【问题描述】:
可能重复:
How to check if a service is running via batch file and start it, if it is not running?
Determine if Tomcat is running in Windows using the command prompt
有没有办法通过通过 Windows 调度程序运行的 Java 程序检查 Tomcat 服务(或与此相关的任何服务)是否在 Windows 操作系统中运行/停止?如果停止,我必须启动该服务吗?
【问题讨论】:
标签: java jakarta-ee tomcat process