I tried to close the tomcat using ./shutdown.sh from tomcat /bin directory. But found that the server was not closed properly. And thus I was unable to restart
My tomcat is running on port 8080.
I want to kill the tomcat process running on 8080. I first want to have the list of processes running on a specific port (8080) in order to select which process to kill.
Use the command
used
grep javaastomcatusesjavaas their processes.It will show the list of processes with port number and process id
the number before
/javais a process id. Now usekillcommand to kill the process-9implies the process will be killed forcefully.