cmd to view the processes occupying a port

Introduction

Sometimes it fails to open a port, and it prompts that it is occupied, and I don't know what process is occupying the port. Let's use the command line to find out the process that occupies the port.

solution

Take port 1080 as an example

write picture description here

Enter the following command on the command line to find out the PID of the occupied port, and the found pid is 4680

netstat -ano | findstr "10086"

Find out specific process information based on PID 4680

tasklist | findstr "4680"

You can see that the program occupying port 1080 is qq.exe

quote

http://blog.csdn.net/x356982611/article/details/79411043

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325813319&siteId=291194637