How do I kill this tomcat process in Terminal?

后端 未结 14 1573
渐次进展
渐次进展 2021-01-30 01:23

Using ps -ef | grep tomcat I found a tomcat server that is running. I tried kill -9 {id} but it returns \"No such process.\" What am I doing wrong?

14条回答
  •  醉酒成梦
    2021-01-30 02:16

    as @Aurand to said, tomcat is not running. you can use the

    ps -ef |grep java | grep tomcat command to ignore the ps programs.

    worked for me in the shell scripte files.

提交回复
热议问题