Home > Common Problem > body text

What to do if port 8080 is occupied

coldplay.xixi
Release: 2023-01-13 00:33:18
Original
80439 people have browsed it

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.

What to do if port 8080 is occupied

#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.

What to do if port 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.

What to do if port 8080 is occupied

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.

What to do if port 8080 is occupied

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template