Determine if Tomcat is running in Windows using the command prompt

后端 未结 10 1760
陌清茗
陌清茗 2020-12-15 06:24

Quite simply, how does one determine whether or not Tomcat is running in Windows, using the command prompt?

I am writing a batch script that must do this. This is

10条回答
  •  孤街浪徒
    2020-12-15 07:01

    You can try searching for the process and extracting the line

    For example:

    ps|grep tomcat
    

提交回复
热议问题