springboot start port occupied when dubbo, but port-related projects have been closed, occupied or display port

Reference: https://blog.csdn.net/qq_41723615/article/details/88641959

...can not bind port 20881
...
Caused by: java.net.BindException: Address already in use: bind

Abnormal mean 20881 port is already bound, unable to bind to port 20881

This exception is abnormal start springboot, tomcat port has been launched, occupied, you can turn off the background tomcat:

In the cmd command window:

1. Enter the netstat -ano | findstr 8005, carriage return, appear in the final surface figure is the port number our tomcat process.

2. Type taskkill / pid xxxx / f xxxx is our port number, enter, terminate!

Can not be terminated: enter tasklist | findstr process ID to see which processes are running in Task Manager can put it off.

Guess you like

Origin www.cnblogs.com/acelance/p/12468106.html