tomcat-7.0.50-extracting version, home directory at a glance:
We can see the main directory bin , conf , lib , logs , the TEMP , webapps , Work 7 folders below them were introduced:
1, bin directory
Tomcat is mainly used to store commands, there are two categories, one category is ending .sh (linux command), the other is the end of the .bat (windows command).
Note: Many of the environment variables are set here, for example, you can set the path to the JDK, TOMCAT path
startup to start tomcat
shutdown to shut down tomcat
Modify catalina can set the tomcat memory
2, conf directory
The main configuration file is used to store some of the tomcat.
server.xml can set the port number, set the domain name or IP, the default project is loaded, the request encoding
web.xml can set the tomcat supported file types
context.xml may be used to configure the data source or the like
tomcat-users.xml to configure user rights management and the tomcat
Catalina directory can be set up under the project loaded by default
3, lib directory
Mainly used to store tomcat run to load the jar package.
For example, the package as jdbc connection to the database we can be added to the lib directory.
4, logs directory
Tomcat used to store log files generated during operation, is very important to log the console output. ( Clear does not affect the running tomcat )
In a windows environment, the console output log catalina.xxxx-xx-xx.log file in
In the linux environment, the console output log file in catalina.out
5, temp directory
Tomcat users to store temporary files created during operation. ( Clear does not affect the running tomcat )
6, webapps directory
Used to store application, when tomcat starts up to load an application under the webapps directory. Yes, in the form of war bag, jar package to publish the application folder.
Of course, you can also put the application be placed anywhere on the disk, maps trying to be difficult in the configuration file.
7, work directory
Tomcat used to store the file compiled at runtime, such as file after the JSP compiler.
Empty work directory, and then restart tomcat, you can achieve clear the cache effect. ~