Current location - Quotes Website - Collection of slogans - How to check the program and PID number occupying the port with DOS command
How to check the program and PID number occupying the port with DOS command
1, press the shortcut key "win+R", enter cmd, and press enter to enter the DOS environment:

2. Check the usage of specific ports: Take port 80 as an example, enter the command "netstat-aon | findstr" 80, and press enter as shown below. It can be seen that the PID number of the program occupying port 80 is 2320:

3. Find the corresponding program according to the PID number: continue to input the command "task list | findstr”2448", and enter is shown as follows. It can be seen that the program corresponding to 2320 is 360tray, which also shows that the program is using port 80:

4. If port 80 is not occupied, you need to end the corresponding process in the task manager. Press the shortcut key "Ctrl+Shift+Esc" to call up the Windows task manager, find "360tray", and click the end process below!