Sometime, when I failed to restart my tomcat7 server, and in the log, it returns error: **address already in use!**
In this case, you can do some check as below:
Check whether the port for
tomcat7
is used by other applications, such asapache2
, nginx… The port number may be80
,8080
, which depends on your configuration, but default is8080
.In some rare cases, I am sure the ports above is not occupied by other application. So, what is happening???
Please check whether the shut down port 8005
is occupied or not, and this may happen if tomcat7 crashes!
1 | # find the pid of 8005 |