tomcat多端口应用

<Service name="Catalina">
    <Connector port="8080" protocol="HTTP/1.1" 
               connectionTimeout="20000" 
               redirectPort="8443" URIEncoding='utf-8' />
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
    <Engine name="Catalina" defaultHost="localhost">
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>
      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
   <Context docBase="F:/Workspaces/MyEclipse 10/advicescreen/WebRoot" path="" reloadable="false"/>
      </Host>
    </Engine>
 </Service>


   

<Service name="advicescreen">
    <Connector port="80" protocol="HTTP/1.1" 
               connectionTimeout="20000" 
               redirectPort="8443" URIEncoding='utf-8' />
    <Connector port="8109" protocol="AJP/1.3" redirectPort="8443" />
    <Engine name="advicescreen" defaultHost="localhost">
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>
      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
   <Context docBase="F:/ERP" path="" reloadable="false"/>
      </Host>
    </Engine>
  </Service>

注意:

两个service标签的名称不同,两个Engine标签的名称不同,所用的端口号也不一样