同时启动多个tomcat,测试,编程两不误。

1.修改tomcat启动访问端口


<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector URIEncoding="UTF-8" port="8081" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" />

2.修改tomcat关闭端口,默认为8005。

<Server port="8008" shutdown="SHUTDOWN">

  
3.修改JVM启动端口
  <!-- Define an AJP 1.3 Connector on port 8009 -->
   <Connector port="8090"
               enableLookups="false" redirectPort="8443"  protocol="AJP/1.3" />

你可能感兴趣的:(jvm,tomcat,编程)