Today I encountered the problem of this port being occupied, and various Baidu first said
Use the command netstat -a -n -o. The last option indicates the process ID of the connection. Find the PID of port 8080 and open the Task Manager, switch to the Process tab, select View->Select Column in the menu bar, and select PID. In the list Just find the process corresponding to the PID in . Then I found that the PID of the process occupying the port was 4. But I couldn't close the process no matter how I closed it, so I searched for the process with pid 4. Sure enough, I found the same problem. The solution was to put world wide web publishing It will be fine if the service is turned off. pid 4 is a system reserved process, but it is still unknown what this process is used for. However, when it is started again, it will be fine. This problem has been solved.