Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kill tomcat service running on any port, Windows

Kill tomcat service running on any port, Windows using command promt like 8080/ 8005

like image 407
Suraj Shingade Avatar asked Feb 07 '17 07:02

Suraj Shingade


People also ask

How can I tell what port Tomcat is running on Windows?

Use a browser to check whether Tomcat is running on URL http://localhost:8080 , where 8080 is the Tomcat port specified in conf/server. xml. If Tomcat is running properly and you specified the correct port, the browser displays the Tomcat homepage.

How do I disable Tomcat in Windows 10?

To stop the Windows service, do these steps: Click the Start menu and right-click Computer and select Manage. Expand Configuration and click Services. Right-click the Tomcat service and select Stop.


2 Answers

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.

like image 146
Suraj Shingade Avatar answered Oct 12 '22 08:10

Suraj Shingade


netstat -ano | findstr :3010 

enter image description here

taskkill /F /PID 

enter image description here

But it won't work for me

then I tried taskkill -PID <processorid> -F

Example:- taskkill -PID 33192 -F Here 33192 is the processorid and it works enter image description here

like image 26
VIKAS KOHLI Avatar answered Oct 12 '22 10:10

VIKAS KOHLI