serverxml 精简版

<?xml version='1.0' encoding='utf-8'?>

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

  <Listener classname="org.apache.catalina.startup.VersionLoggerListener" />

  <!-- Security listener. Documentation at /docs/config/listeners.html

         <Listener classname="org.apache.catalina.security.SecurityListener" />

  -->

  <!--APR library loader. Documentation at /docs/apr.html -->

  <Listener classname="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />

  <!-- Prevent memory leaks due to use of particular java/javax APIs-->

  <Listener classname="org.apache.catalina.core.JreMemoryLeakPreventionListener" />

  <Listener classname="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />

  <Listener classname="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />

  <GlobalNamingResources>

    <Resource name="UserDatabase" auth="Container"

              type="org.apache.catalina.UserDatabase"

              description="User database that can be updated and saved"

              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"

              pathname="conf/tomcat-users.xml" />

  </GlobalNamingResources>

  <Service name="Catalina">

    <Connector port="8001" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443"  URIEncoding="UTF-8" maxParameterCount="100" maxSpareThreads="75" maxThreads="100" minSpareTHreads="5" acceptCount="100" useBodyEncodingForURI="true"/>

    <Engine name="Catalina" defaultHost="localhost" jvmRoute="s1">

      <Realm classname="org.apache.catalina.realm.UserDatabaseRealm"

             resourcename="UserDatabase"/>

      <Host name="localhost"  appBase="webapps"

            unpackWARs="false" autoDeploy="false"

            xmlValidation="false" xmlNamespaceAware="false">

      </Host>

    </Engine>

  </Service>

</Server>

$CATALINA_HOME/bin/startup.sh -config $CATALINA_BASE/conf/server.xml