`

tomcat部署两个项目

阅读更多
  <?xml version="1.0" encoding="utf-8" ?>
<Server port="8085" shutdown="SHUTDOWN">

<Service name="Catalina">
  <Connector port="88" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" maxThreads="500" acceptCount="500" enableLookups="false" URIEncoding="UTF-8" />
<Connector port="8089" protocol="AJP/1.3" redirectPort="8443" />
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.LockOutRealm">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase" />
  </Realm>
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
  <Context path="" docBase="E:\j2ee\xxx" />
  <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="%h %l %u %t "%r" %s %b" />
  </Host>
  </Engine>
  </Service>

<Service name="Catalina">
  <Connector port="89" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8444" maxThreads="500" acceptCount="500" enableLookups="false" URIEncoding="UTF-8" />
<Connector port="8090" protocol="AJP/1.3" redirectPort="8444" />
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.LockOutRealm">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase" />
  </Realm>
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
  <Context path="" docBase="E:\j2ee\xxx" />
  <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="%h %l %u %t "%r" %s %b" />
  </Host>
  </Engine>
  </Service>
  </Server>

在context.xml中加入  <Loader delegate="true" /> 防止tomcat lib 与项目lib jar包冲突
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics