首页 > 代码库 > OSChina 的 Tomcat 配置 server.xml

OSChina 的 Tomcat 配置 server.xml

1. [代码]server.xml     

 1 <Server port="9005" shutdown="SHUTDOWN"> 2   <Service name="Catalina"> 3     <Executor name="tomcatThreadPool" namePrefix="HTTP-9081-exec-" 4         maxThreads="200" minSpareThreads="10" maxIdleTime="60000"/> 5     <!-- 6     <Connector port="9082" protocol="org.apache.coyote.http11.Http11NioProtocol" 7         connectionTimeout="20000" executor="tomcatThreadPool" 8         redirectPort="8443" acceptorThreadCount="4"/> 9     -->10     <Connector port="9081" protocol="HTTP/1.1"11                connectionTimeout="20000"12                redirectPort="8443" executor="tomcatThreadPool"/>13     <Engine name="Catalina" defaultHost="localhost">14       <Host name="localhost"  appBase="webapps"15             unpackWARs="false" autoDeploy="false"16             xmlValidation="false" xmlNamespaceAware="false">17         <Context path="" docBase="/data/oschina/webapp" reloadable="false"/>18      </Host>19     </Engine>20   </Service>21 </Server>

 

复制去Google翻译翻译结果
 

OSChina 的 Tomcat 配置 server.xml