tomcat directory and file specification

Directories and files Explanation
bin

Used to store the tomcat start, stop drinking and other batch scripts Shell scripts

bin/startup.bat

It used to start tomcat under Windows

bin/startup.sh

It used to start tomcat under Linux

bin/shutdown.bat

To stop tomcat under Windows

bin/shutdown.sh

To stop tomcat in Linux

conf

For related configuration files of tomcat

conf / Catalina

Context used to store configuration for each virtual machine

conf/context.xml

Context is used to define all Web applications are configured to load, if a Web application specifies its own context.xml, then the configuration file will be overwritten

conf/catalina.properties

tomcat environment variable configuration

conf/ctatlina.policy

When tomcat running in safe mode, this file is the default security policy configuration

conf/logging.properties

tomcat configuration log file, the log level and can be modified tomcat path through which the log file, etc.

conf/server.xml

tomcat server core configuration files for configuring tomcat linker, virtual host listening port] to process the request and so on. It can be said, tomcat main server instance is created based on the configuration information of the file

conf/tomcat-users.xml

Tomcat used to define the default user and role mapping information, tomcat's Manager module that is used for secure authentication of the user defined in the file

conf / web.xml

tomcat default in all applications deployment descriptor file, define the basis for the main Servlet and MIME map. If the application does not contain Web.xml, then tomcat will use this file to initialize the deployment descriptor, on the contrary, tomcat will be the default deployment descriptors and custom configuration at boot merger

lib

tomcat server dependencies directory that contains the server runtime environment dependent Jar package tomcat

logs

tomcat default log storage path

webapps

tomcat default Web application deployment directory

work

JSP Web application code generation and compilation temporary directory

 

"Tomcat architecture analysis" with Liuguang Rui 

 

Guess you like

Origin www.cnblogs.com/Ye-ye/p/12631899.html