Tomcat service implements configuration of multiple applications

Source: Internet
Author: User
Objective: to install tomcat on a server to implement multiple applications: Modify $ atat_home/conf/server. xml content: & lt; Serverport & quot; 8005 & quot; shutdown & quot; SHUTDOWN & quot; debug & quot; 0 & quot; & gt; & lt; Listenerclass purpose: install tomcat on the server to implement services for multiple applications
Step: Modify $ TOMCAT_HOME/conf/server. xml
Content:

Debug = "0"/>
Debug = "0"/>





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



 

MaxThreads = "150" minSpareThreads = "25" maxSpareThreads = "75"
EnableLookups = "false" redirectPort = "8443" acceptCount = "100"
Debug = "0" connectionTimeout = "20000"
DisableUploadTimeout = "true"/>




EnableLookups = "false" redirectPort = "8443" debug = "0"
Protocol = "AJP/1.3" type = "codeph" text = "/codeph"/>


Prefix = "catalina_log." suffix = ". txt"
Timestamp = "true"/>
Debug = "0" resourceName = "UserDatabase"/>

UnpackWARs = "true" autoDeploy = "true"
XmlValidation = "false" xmlNamespaceAware = "false">



Factory Org. apache. commons. dbcp. BasicDataSourceFactory
DriverClassName Oracle. jdbc. driver. OracleDriver
Url Jdbc: oracle: thin :@ 192.168.10.30: 1521: itdata
Username Wufeng
Password Wufeng
MaxActive 20
MaxIdle 10
MaxWait -1
RemoveAbandoned True
RemoveAbandonedTimeout 60
LogAbandoned True


Directory = "logs" prefix = "localhost_log." suffix = ". txt"
Timestamp = "true"/>





MaxThreads = "150" minSpareThreads = "25" maxSpareThreads = "75"
EnableLookups = "false" redirectPort = "8443" acceptCount = "100"
Debug = "0" connectionTimeout = "20000"
DisableUploadTimeout = "true"/>



EnableLookups = "false" redirectPort = "8443" debug = "0"
Protocol = "AJP/1.3" type = "codeph" text = "/codeph"/>


Prefix = "catalina_log." suffix = ". txt"
Timestamp = "true"/>
Debug = "0" resourceName = "UserDatabase"/>

UnpackWARs = "true" autoDeploy = "true"
XmlValidation = "false" xmlNamespaceAware = "false">



Factory Org. apache. commons. dbcp. BasicDataSourceFactory
DriverClassName Oracle. jdbc. driver. OracleDriver
Url Jdbc: oracle: thin :@ 192.168.10.30: 1521: itdata
Username Liuli
Password Liuli
MaxActive 20
MaxIdle 10
MaxWait -1
RemoveAbandoned True
RemoveAbandonedTimeout 60
LogAbandoned True


Directory = "logs" prefix = "localhost_log." suffix = ". txt"
Timestamp = "true"/>




Add the corresponding service to more application services. Note that the service name cannot be the same and the Port cannot be the same.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.