The solution to the occupied port 8080: first open the running input [netstat -ano]; then enter [netstat -aon|findstr "8080"] to view the PID in the list; finally view the corresponding occupying program and Just close it.
#The operating environment of this article: Windows 7 system, Dell G3 computer.
Solution to the 8080 port being occupied:
1. View all port processes in windows
Click the start menu and select Run (win r), then Enter "cmd" in the run dialog box, press Enter to open the command prompt window, then enter [netstat -ano] in the window, press Enter, and then all port occupancy will be displayed. As shown in the picture below, my favorite 8080 is occupied.
2. Continue to enter [netstat -aon|findstr "port"] in the window. The port prompted here is 8080, then enter the command as [netstat -aon |findstr "8080"], you can see the PID in the list after pressing Enter. Check the corresponding occupying program in the computer's task manager according to the PID, and then close it.
3. Can we see the process ID of the program occupying 8080: 7172, continue to enter the command [tasklist|findstr "7172"], 7172 is the process ID, now Once we know which process is occupying it, we can take appropriate measures to solve it.
Related video recommendations:PHP programming from entry to proficiency
The above is the detailed content of What to do if port 8080 is occupied. For more information, please follow other related articles on the PHP Chinese website!