|
楼主 |
发表于 2021-1-6 13:37:02
|
显示全部楼层
麻烦帮忙看一下具体配置
----------------------------------------------server.xml----------------------------开始------------------
<?xml version="1.0" encoding="UTF-8"?>
<Server port="8005" shutdown="SHUTDOWN">
<!--APR library loader. Documentation at /docs/apr.html -->
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on"/>
<!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
<Listener className="org.apache.catalina.core.JasperListener"/>
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>
<!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -->
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
<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="80" URIEncoding="utf-8" maxHttpHeaderSize="8192" compression="on" maxThreads="3000" minSpareThreads="200" maxSpareThreads="500" enableLookups="false" redirectPort="8443" acceptCount="700" connectionTimeout="30000" disableUploadTimeout="true" compressableMimeType="text/html,text/xml,text/css,text/javascript,application/x-javascript,application/javascript,application/xml,application/json"/>
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
-->
<!-- Define an AJP 1.3 Connector on port 8009 -->
<!-- <Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/> -->
<!-- You should set jvmRoute to support load-balancing via AJP ie :
<Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
-->
<Engine name="Catalina" defaultHost="xx.xx.xx.xx">
<!--For clustering, please take a look at documentation at:
/docs/cluster-howto.html (simple how to)
/docs/config/cluster.html (reference documentation) -->
<!--
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
-->
<!-- The request dumper valve dumps useful debugging information about
the request and response data received and sent by Tomcat.
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
-->
<!-- This Realm uses the UserDatabase configured in the global JNDI
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
<!-- Define the default virtual host
Note: XML Schema validation will not work with Xerces 2.2.
-->
<Host name="xx.xx.xx.xx" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="xx.xx.xx.xx_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
-->
<Context processTlds="false" docBase="../../runtime/BusinessServer" path="/BusinessServer" reloadable="false">
<Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false" maxActiveSessions="-1" minIdleSwap="-1" maxIdleSwap="-1" maxIdleBackup="-1">
<Store className="org.apache.catalina.session.FileStore" directory="seskep"/>
</Manager>
<Resource name="common" auth="Container" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://xx.xx.xx.xx:3306/common" username="root" password="123456" maxActive="200" maxIdle="20" validationQuery="select current_time"/>
<Resource name="propertyplatform" auth="Container" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://xx.xx.xx.xx:3306/propertyplatform" username="root" password="123456" maxActive="50" maxIdle="5" validationQuery="select current_time"/>
<Resource name="integratedplatform" auth="Container" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://xx.xx.xx.xx:3306/integratedplatform" username="root" password="123456" maxActive="50" maxIdle="5" validationQuery="select current_time"/>
<Resource name="performanceplatform" auth="Container" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://xx.xx.xx.xx:3306/performanceplatform" username="root" password="123456" maxActive="50" maxIdle="5" validationQuery="select current_time"/>
<Resource name="tenderplatform" auth="Container" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://xx.xx.xx.xx:3306/tenderplatform" username="root" password="123456" maxActive="50" maxIdle="5" validationQuery="select current_time"/>
<Resource name="generalplatform" auth="Container" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://xx.xx.xx.xx:3306/generalplatform" username="root" password="123456" maxActive="50" maxIdle="5" validationQuery="select current_time"/>
<Resource name="system" auth="Container" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://xx.xx.xx.xx:3306/x5sys" username="root" password="123456" maxActive="200" maxIdle="20" validationQuery="select current_time"/>
<Resource name="demo" auth="Container" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://xx.xx.xx.xx:3306/x5sys" username="root" password="123456" maxActive="50" maxIdle="5" validationQuery="select current_time"/>
<Resource name="officeplatform" auth="Container" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://xx.xx.xx.xx:3306/officeplatform" username="root" password="123456" maxActive="200" maxIdle="20" validationQuery="select current_time"/>
<Resource name="doc" auth="Container" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://xx.xx.xx.xx:3306/x5sys" username="root" password="123456" maxActive="200" maxIdle="20" validationQuery="select current_time"/>
<Resource name="personnelplatform" auth="Container" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://xx.xx.xx.xx:3306/personnelplatform" username="root" password="123456" maxActive="50" maxIdle="5" validationQuery="select current_time"/>
<Resource name="remunerationplatform" auth="Container" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://xx.xx.xx.xx:3306/remunerationplatform" username="root" password="123456" maxActive="50" maxIdle="5" validationQuery="select current_time"/>
</Context>
<Context processTlds="false" docBase="../../runtime/UIServer" path="/x5" reloadable="false">
<Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false" maxActiveSessions="-1" minIdleSwap="-1" maxIdleSwap="-1" maxIdleBackup="-1">
<Store className="org.apache.catalina.session.FileStore" directory="seskep"/>
</Manager>
</Context>
<Context processTlds="false" docBase="../../runtime/ReportServer" path="/ReportServer" reloadable="false">
<Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false" maxActiveSessions="-1" minIdleSwap="-1" maxIdleSwap="-1" maxIdleBackup="-1">
<Store className="org.apache.catalina.session.FileStore" directory="seskep"/>
</Manager>
</Context>
<Context processTlds="false" docBase="../../runtime/DocServer" path="/DocServer" reloadable="false">
<Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false" maxActiveSessions="-1" minIdleSwap="-1" maxIdleSwap="-1" maxIdleBackup="-1">
<Store className="org.apache.catalina.session.FileStore" directory="seskep"/>
</Manager>
<Resource name="doc" auth="Container" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://xx.xx.xx.xx:3306/x5sys" username="root" password="123456" maxActive="200" maxIdle="20" validationQuery="select current_time"/>
</Context>
<Context processTlds="false" docBase="../../runtime/timer" path="/timer" reloadable="false" workDir="work"/>
</Host>
</Engine>
</Service>
</Server>
----------------------------------------------server.xml----------------------------结束-----------------
-------------------------catalina.bat----------------------
set JAVA_OPTS=-server -Xms30720m -Xms30720m -XXermSize=128M -XX:MaxNewSize=256m -XX:MaxPermSize=512m -Dcom.sun.management.jmxremote -Djava.awt.headless=true
|
|