How do I kill this tomcat process in Terminal?

后端 未结 14 1555
渐次进展
渐次进展 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:03

    Tomcat is not running. Your search is showing you the grep process, which is searching for tomcat. Of course, by the time you see that output, grep is no longer running, so the pid is no longer valid.

提交回复
热议问题