Windows
1) Go to (Open) Command Prompt (Press Window + R then type cmd Run this).
2) Run following commands
For all listening ports
netstat -aon | find /i "listening"
Apply port filter
netstat -aon |find /i "listening" |find "8080"
Finally with the PID we can run the following command to kill the process
3) Copy PID from result set
taskkill /F /PID
Ex: taskkill /F /PID 189
Sometimes you need to run Command Prompt with Administrator privileges
Done !!! you can start your service now.
Linux
1) Open Terminal
2) Run command
sudo pkill -9 -f tomcat
ref : https://stackoverflow.com/questions/42084188/kill-tomcat-service-running-on-any-port-windows
https://stackoverflow.com/questions/15236308/how-do-i-kill-this-tomcat-process-in-terminal