current position:Home>Windows method for checking network port occupation and kill process

Windows method for checking network port occupation and kill process

2022-06-24 09:39:04Huizhou wuyanzu

One 、WINDOWS Check the network port
C:\Windows\System32>netstat -ano|findstr “1521”
TCP 192.168.3.86:49830 192.168.3.211:1521 ESTABLISHED 5992
TCP 192.168.3.86:49831 192.168.3.211:1521 TIME_WAIT 0

Two 、 Check the process corresponding to the port
C:\Windows\System32>tasklist | findstr 5992
plsqldev.exe 5992 Console 1 78,712 K

3、 ... and 、 then KILL The process uses the following instructions : -f To enforce
C:\Windows\System32>taskkill /pid 5992 -t -f
success : Terminated PID 1664 ( Belong to PID 5992 Subprocesses ) The process of .
success : Terminated PID 5992 ( Belong to PID 6076 Subprocesses ) The process of .

Four 、 Check the port occupancy – Gradually release
C:\Windows\System32>netstat -ano|findstr “1521”
TCP 192.168.3.86:49831 192.168.3.211:1521 TIME_WAIT 0

C:\Windows\System32>netstat -ano|findstr “1521”

copyright notice
author[Huizhou wuyanzu],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/175/202206240817364347.html

Random recommended