SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


tomcatdata
Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tomcatdata [2013/04/21 11:03] (current)
sjoerd created
Line 1: Line 1:
 += Tomcat Data =
  
 += Tomcat Users =
 +Tomcat users are defined in the tomcat-users.xml,​ which is located in the TOMCAT_HOME/​conf directory:
 +
 +* cat tomcat-users.xml
 +<​code>​
 +<?xml version='​1.0'​ encoding='​utf-8'?>​
 +<​tomcat-users>​
 +  <role rolename="​tomcat"/>​
 +  <role rolename="​manager"/>​
 +  <user username="​admin"​ password="​password"​ roles="​tomcat,​manager"/>​
 +</​tomcat-users>​
 +</​code>​
 +
 += Tomcat Version =
 +
 +Check the TOMCAT_HOME/​logs/​catalina.out logfile for the section below:
 +
 +* less catalina.out
 +
 +<​code>​
 +May 27, 2009 10:01:42 PM org.apache.coyote.http11.Http11BaseProtocol init
 +INFO: Initializing Coyote HTTP/1.1 on http-8080
 +May 27, 2009 10:01:42 PM org.apache.catalina.startup.Catalina load
 +INFO: Initialization processed in 742 ms
 +May 27, 2009 10:01:42 PM org.apache.catalina.core.StandardService start
 +INFO: Starting service Catalina
 +May 27, 2009 10:01:42 PM org.apache.catalina.core.StandardEngine start
 +INFO: Starting Servlet Engine: Apache Tomcat/​5.5.26
 +May 27, 2009 10:01:42 PM org.apache.catalina.core.StandardHost start
 +INFO: XML validation disabled
 +May 27, 2009 10:03:00 PM org.apache.coyote.http11.Http11BaseProtocol start
 +INFO: Starting Coyote HTTP/1.1 on http-8080
 +May 27, 2009 10:03:01 PM org.apache.catalina.storeconfig.StoreLoader load
 +INFO: Find registry server-registry.xml at classpath resource
 +May 27, 2009 10:03:01 PM org.apache.catalina.startup.Catalina start
 +INFO: Server startup in 79086 ms
 +</​code>​
 +
 +You can see the version is 5.5.26
 +
 += Tomcat Ports =
 +
 +Ports are configured in the TOMCAT_HOME/​conf/​server.xml file:
 +
 +* less server.xml
 +<​code>​
 +<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
 +    <​Connector port="​8080"​ maxHttpHeaderSize="​8192"​
 +               ​maxThreads="​150"​ minSpareThreads="​25"​ maxSpareThreads="​75"​
 +               ​enableLookups="​false"​ redirectPort="​8443"​ acceptCount="​100"​
 +               ​connectionTimeout="​20000"​ disableUploadTimeout="​true"​ />
 +</​code>​
 +
 +{{tag>​tomcat security}}
tomcatdata.txt ยท Last modified: 2013/04/21 11:03 by sjoerd