Tomcat 6.0 Introduction

The film translated from: http://tomcat.apache.org/tomcat-6.0-doc/introduction.html

Introduction

  Whether the developer or administrator before using tomcat need to understand some of the necessary information herein, this brief account of some terms and concepts in the tomcat.
  For example, a web application context is the meaning.

CATALINA_HOME

  In the document, often used to CATALINA_HOME, which represents the root directory of tomcat. If we say CATALINA_HOME / readme.txt, that is to say in the readme.txt file in tomcat root directory.
  For example, my tomcat installed in E: \ software \ Tomcat6.0.14
        
  So E: \ software \ Tomcat6.0.14 \ apache -tomcat-6.0.14 is CATALINA_HOME
  
  Note that: tomcat under the windows do not need to force the configuration CATALINA_HOME environment variable, because if you were to manually execute .bat file. So .bat file will automatically execute the following code is automatically set CATALINA_HOME:
1 rem Guess CATALINA_HOME if not defined
2 set CURRENT_DIR=%cd%
3 if not "%CATALINA_HOME%" == "" goto gotHome
4 set CATALINA_HOME=%CURRENT_DIR%
5 if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
6 cd ..
7 set CATALINA_HOME=%cd%
8 cd %CURRENT_DIR%

  Wherein determining whether the first row is already configured CATALINA_HOME, if not configured by default continue down

  The second line sets CURRENT_DIR, since we started manually startup.bat, so the current directory should be tomcat6.0 / bin /

  The third line down to determine whether or not to continue to empty, if not empty as evidenced by the configuration of, jump to the gothome. Otherwise, continue down

  The fourth line is set CATALINA_HOME is the current directory, that is tomcat6.0 / bin

  The fifth line judge can find a file, complete directory becomes tomcat6.0 / bin / bin / catalina.bat. It is clearly not enough, so continue down

  Sixth row exit to the top-level directory that tomcat6.0

  The seventh line is set CATALINA_HOME tomcat6.0. ------------------------------------ be automatically configured so far finished.

  

The key directory

  / Bin: contains start, stop and other scripts. On UNIX systems, use * .sh script; use * .bar script in windows.
  Since win32 command line is missing some features, there are also some additional documentation. The most commonly used is the startup.sh or startup.bat.
    
 
    / Conf: configuration files and some documents define the rules. The most important document is the server.xml, which is the main configuration file tomcat container.
    
 
    / Logs: This is the default log directory, which prints out the contents of the console, will be saved in the catalina.log
    
 
  / Webapps: prevent web application.
  ROOT tomcat which is stored in the home, when the input URL: loalhost: 8080, default index.html to access the directory under
  tomcat docs stored in the official document, as index.html Home
  jsp examples as an example of application
  host-manager role is unknown
     

Configuring tomcat

    All configuration information is read at startup, so when modifying the configuration information must restart tomcat.

Reproduced in: https: //my.oschina.net/u/204616/blog/545272

Guess you like

Origin blog.csdn.net/weixin_34343689/article/details/91989833