구조
Directories and Files
These are some of the key tomcat directories:
- /bin - Startup, shutdown, and other scripts. The
*.sh
files (for Unix systems) are functional duplicates of the*.bat
files (for Windows systems). Since the Win32 command-line lacks certain functionality, there are some additional files in here. - /conf - Configuration files and related DTDs. The most important file in here is server.xml. It is the main configuration file for the container.
- /logs - Log files are here by default.
- /webapps - This is where your webapps go.
CATALINA_HOME and CATALINA_BASE
Throughout the documentation, there are references to the two following properties:
- CATALINA_HOME: Represents the root of your Tomcat installation, for example
/home/tomcat/apache-tomcat-9.0.10
orC:\Program Files\apache-tomcat-9.0.10
. - CATALINA_BASE: Represents the root of a runtime configuration of a specific Tomcat instance. If you want to have multiple Tomcat instances on one machine, use the
CATALINA_BASE
property.
If you set the properties to different locations, the CATALINA_HOME location contains static sources, such as .jar
files, or binary files. The CATALINA_BASE location contains configuration files, log files, deployed applications, and other runtime requirements.
댓글 없음:
댓글 쓰기