Nowadays, there are many people who are learning some IT programs, or want to install a small program software for their mobile phones, or other things. Some users will also encounter some setbacks and difficulties during the operation process, such as When a site on the server is configured on port 8080, it is prompted that port 8080 is occupied. I have been worried about this for a long time. Now, the editor will analyze with you the solution to closing the occupied port 8080.
Nowadays, IT programmers are the most popular employees. Of course, there will also be some problems in this operation. In the process of operating the software, you will encounter the trouble of closing the 8080 port and port occupation. However, How do you know what service is occupying the port you are currently using? How to solve it? Next, the editor will share with you the experience of solving the 8080 port.
What to do if port 8080 is closed and is occupied
View all port processes in Windows:
Click the start menu and select Run (win r), and then run Enter "cmd" in the dialog box, press Enter to open the command prompt window, then enter [netstat-ano] in the window, press Enter, and then all port occupancy status will be displayed.
Port diagram-1
Continue to enter [netstat -aon|findstr "port"], here is the prompt The port is 8080, then enter the command as [netstat -aon|findstr "8080"], and press Enter to see the PID in the list. Check the corresponding occupying program in the computer's task manager according to the PID, and then close it.
Port Diagram-2
You can see the process ID of the program occupying 8080: 7172, continue to enter the command [tasklist|findstr "7172"], 7172 is the process ID. If we know which process is occupying it, we can take corresponding measures to solve it.
Close Port Figure-3
It is found that the SqlServer 2008 report service occupies port 8080, so disable the service That’s OK!
The above is the solution to closing the occupied port 8080.
The above is the detailed content of How to deal with the problem of port 8080 being occupied - the editor teaches you how to solve it. For more information, please follow other related articles on the PHP Chinese website!