Windows technology articles-cmd forcibly close the port and release the port occupation method, cmd queries the port-related process pid and kills the process instance demonstration

Use the following command to view the process number occupying the port.

netstat -nao | findstr "5554"

Insert picture description here
You can taskkill -pid 5076 -fkill command process, or by the task manager, find the corresponding pid process and then directly to the right end of the process to lift the port occupied.
Insert picture description here
Like it if you like it ❤!

Guess you like

Origin blog.csdn.net/qq_38161040/article/details/108270438