Home  >  Article  >  Backend Development  >  Solve the problem of port 8080 being occupied after Eclipse is forced to close

Solve the problem of port 8080 being occupied after Eclipse is forced to close

WBOY
WBOYOriginal
2016-07-25 08:56:361838browse
This article introduces the solution to the 8080 port occupation problem after Eclipse is forced to close. Friends in need can refer to it.

Eclipse takes up a lot of machine memory. Due to some unknown situation, Eclipse suddenly died. At this time, I had to kill the Eclipse process and then restart it. If you do this, the tomcat server in Eclipse will not start normally when you start it again.

Cause: Port 8080 is occupied.

Solution:

The first method: Restart the machine, which is usually called a fool-level operation;

Second method:

The first step is to check the PID of the process occupying port 8080. Type the following command in the Windows cmd window: netstat -ona > e:target.txt //Output detailed information to the file target.txt

The second step is to find the PID value corresponding to port 8080 in target.txt

The third step, enter the following command to kill this process TASKKILL /F /PID {PID number of the process corresponding to port 8080}



Statement:
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