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?
ps -ef | grep tomcat
kill -9 {id}
as @Aurand to said, tomcat is not running. you can use the
ps -ef |grep java | grep tomcat command to ignore the ps programs.
ps -ef |grep java | grep tomcat
ps
worked for me in the shell scripte files.