运行多个tomcat时,出现tomcat Address already in use: JVM_Bind这个错误,可以按照如下方式解决:
修改F:\tomcat20111101\apache-tomcat-6.0.26\conf目录下的server.xml文件的端口号
修改后的结果如下:
<Server port="8006" shutdown="SHUTDOWN">,
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<Connector port="8008" protocol="AJP/1.3" redirectPort="8443" />
Server 处的8006端口,Connector处的8080端口、8008端口这三个地方的端口进行设置。不能与其他有冲突
时间: 2024-09-30 16:08:58