View Windows port usage (rpm)

We are using the port during the encounter or remote printers, etc., but there are many users encounter a situation ports are occupied, encountered such a problem, we must first identify your computer so the port and view them, there are still many people do not know how to check the computer port.

1 View all port windows processes

First, click the Start menu, select Run, then type "cmd" in the Run dialog box, press Enter to open a Command Prompt window and type in the window

netstat -ano

 

Press Enter, and then will display all ports occupancy.

2 query specifies port

If you want to query the specified port occupied, you can continue to enter in the window

netstat -aon | findstr "designated ports"

 

Port assume suggesting here is 80, then enter the command [netstat -aon | findstr "80"], then Enter to see the PID list, then according to the PID in the computer's task manager to view the corresponding occupancy program, and then close it.

Then find the corresponding PID of the process according to the query, I can see what this program occupy 80 process ID: 2432, continue to enter the command

tasklist|findstr "2432"

 

, 2432 is the process ID, which is now occupied by the process know that we can take appropriate measures to solve.

We are using the port during the encounter or remote printers, etc., but there are many users encounter a situation ports are occupied, encountered such a problem, we must first identify your computer so the port and view them, there are still many people do not know how to check the computer port.

1 View all port windows processes

First, click the Start menu, select Run, then type "cmd" in the Run dialog box, press Enter to open a Command Prompt window and type in the window

netstat -ano

 

Press Enter, and then will display all ports occupancy.

2 query specifies port

If you want to query the specified port occupied, you can continue to enter in the window

netstat -aon | findstr "designated ports"

 

Port assume suggesting here is 80, then enter the command [netstat -aon | findstr "80"], then Enter to see the PID list, then according to the PID in the computer's task manager to view the corresponding occupancy program, and then close it.

Then find the corresponding PID of the process according to the query, I can see what this program occupy 80 process ID: 2432, continue to enter the command

tasklist|findstr "2432"

 

, 2432 is the process ID, which is now occupied by the process know that we can take appropriate measures to solve.

Guess you like

Origin www.cnblogs.com/yycc/p/11462648.html