码迷,mamicode.com
首页 > 其他好文 > 详细

OSChina 的 Tomcat 配置 server.xml

时间:2014-11-22 18:39:14      阅读:186      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   io   ar   color   os   sp   java   

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>

 

OSChina 的 Tomcat 配置 server.xml

标签:style   blog   http   io   ar   color   os   sp   java   

原文地址:http://www.cnblogs.com/linksky1018/p/4115416.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!