1. Problem Description
When you start tomcat, always throws Address localhost:1099 is already in use
. lsof -i tcp:1099
View 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
- Delete tomcat, re-download
- Shutdown restart
- Updated versions of IDEA
- The final solution (not clear principle)
Add in the / etc / hosts file
127.0.0.1 localhost
this 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