tomcat - Address localhost:1099 is already in use

1. Problem Description

When you start tomcat, always throws Address localhost:1099 is already in use. lsof -i tcp:1099View the progress of the port number, and did not take up the process to find the port number; change the JMX port number is always throws the same error.

2. Solve the road

  • Invalid attempt
    1. Delete tomcat, re-download
    2. Shutdown restart
    3. Updated versions of IDEA
  • The final solution (not clear principle)

Add in the / etc / hosts file 127.0.0.1 localhostthis line; we must pay attention to localhost and 127.0.0.1 bind. Localhost because I also bind the other IP, cause these problems.

Reproduced in: https: //www.jianshu.com/p/331167ab9137

Guess you like

Origin blog.csdn.net/weixin_33857679/article/details/91138551