springboot project start ---- mine through port 8080 is occupied

Recently started a new project that uses a distributed architecture to springboot simple architecture springboot project, project start normal access port 8080.;

Later in the project the integration redis and dubbo, start the project again, suggesting that 8080 port is occupied:

Description:

The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be misconfigured.

Action:

Verify the connector’s configuration, identify and stop any process that’s listening on port 8080, or configure this application to listen on another port.

Officially began the investigation of the road:

cmd into the doc command window:

1. Enter the netstat -nao view port information currently in use

Enter the command again:  tasklist | findstr "13932"    

Find java.exe 8080 occupied the port end of the process, and then start the project again springboot

Project started again failed, suggesting that 8080 port is occupied, well, the investigation again

Turn off redis and local zookeeper, normal to start the project, the project prompted redis not connected, open redis, project tips dubbo server not found, ok, open zookeeper, old problem reappears, 8080 port is occupied, the program failed to start;

cmd into the doc viewing, but also java.exe. Well, I threw this pot java.exe

The second start when found, do not open the zookeeper, the project will be prompted to services not found. 8080 directly to open a port is occupied. Will it be the fault of the lead zookeeper let java.exe to back this pot?

Let this be the opposite of, find java.exe in Task Manager and then end the process, and now 8080 port is not occupied the Close Program, started only zookeeper, then go see the doc command port usage

We culprit was caught betray oneself, the 8080 port is occupied ......

Well, I found the murderer, zookeeper finally willing to stand up pot back

Recent versions zookeeper There is a built-in management console is started by jetty, will take up 8080 port. 

ok, now is the time to solve the problem, a method to replace the Internet port of many modify the configuration file, and I chose the most direct way down version.
go to the official website to download version 3.4 of the project and then start again. ah ... the whole world chastened

Guess you like

Origin www.cnblogs.com/yshexiaobai/p/11514506.html