Today, I found a strange error when I started tomcat. Why not use the eccentric adjective instead of the strange one? Let's take a look at the following Tomcat startup information.
Severe: Error starting endpoint
Java.net. bindexception: Address already in use: jvm_bind: 8080
Some stack information is omitted above. In fact, this error often occurs before. Generally, this error is caused by the fact that a tomcat has been started and then started again. Therefore, address already in use is reported.
However, if I disable all javaw.exe and start Tomcat, the same error is returned. Enter netstat -abin In the CMD environment and check the token. The source is that qqmusic.exe occupies port 8080.
Port 8080 is a very famous port. People who have used proxies know that the default HTTP proxy is port 8080 and tomcat, JBoss and other servers all know 8080 is their default port. Qqmusic took over port 8080 in the dark.
Solution: because our team decided to unify the development environment and use 8080 as the Tomcat port, there is no way. In the future, we only need to start Tomcat and then start qqmusic, so that qqmusic can automatically select another port.