How do I kill this tomcat process in Terminal?

后端 未结 14 1556
渐次进展
渐次进展 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 01:58

    ps -ef
    

    will list all your currently running processes

    | grep tomcat
    

    will pass the output to grep and look for instances of tomcat. Since the grep is a process itself, it is returned from your command. However, your output shows no processes of Tomcat running.

提交回复
热议问题