windows service port is occupied

What's happening on my machine:

Start tomcat server 8080 port in myeclipse, i3 books (4,5 years old), the computer is relatively slow, sometimes the direct myeclipse tool directly dies and the 8080 port started by tomcat is not closed normally, after using the task manager to close myeclipse , restart myeclipse and start the tomcat server, you will find that the comcat server cannot be started, and prompt JVM_Bind. At this time, the port is already occupied. The occupied port needs to be closed.

Close method:

1. Open the windows command line, enter netstat -ano and all service ports will appear in the system



 Find the port in [Local Address], and find the corresponding [PID],

2. Open [Task Manager], find the [Services] option, find the corresponding PID, and end the service.



 

Note: My 8080 port cannot be found in the [Services] option, then I can also go to [Process] to find it.

The [Process] option does not display the PID by default. You can check the PID in the [View] column above the process and it will be displayed.



 

 

Then find the corresponding PID and end the process.

 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326306192&siteId=291194637