Current location - Quotes Website - Team slogan - Use the command line under Windows to see which process the port number is occupied by.
Use the command line under Windows to see which process the port number is occupied by.
Tool raw materials; Computer, Windows

Use the command line to check the port number under 1. Windows, take the following 8080 port as an example;

The printed result after executing the netstat -aon|findstr 8080 command is as follows:

2. You can see that the port is occupied by the process with process number 5684. Continue with the following command:

The printed results after the tasklist |findstr "5684 "command are as follows:

3. If you need to check other ports. Just change 8080 to the port number you want to query.