I am trying to run more than one tomcat instance on my server. I can successfully run tomcat 7 on port 8080. I am trying to run another tomcat on port 8181 the server is refusing to start with the following error
java.net.bindexception address already in use
This is my port configuration
<Connector port="8181" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
Please what could be wrong. Kindly assist.
答案 0 :(得分:0)
Tomcat uses three ports while it's running.
By default it's 8080
for HTTP, 8005
for SHUTDOWN and 8009
for AJP.
You've changed 8080
to 8181
, so change below two configurations as well.
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
<Server port="8005" shutdown="SHUTDOWN">