Kill the specified port CMD command line taskkill in window

Two-step method: 1 query for port occupancy,2 kill the process by force
netstat -aon|findstr “8080”
taskkill /pid 4136-t -f
 
 
Execute the procedure under the Windows command line window
1. Check the specified port usage
netstat aon | findstr searches “8080”
Agreement local address external state of PID

 
The port is occupied by process 4136
2. Directly force kill the specified port
taskkill /pid 4136 -t -f

 
 
Ps: You can also close a process by its program name
View the corresponding process PID
tasklist | findstr searches “127704”
Image name PID will words name session # memory use

Taskkill /f /t /im java.exe


Read More: