In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you an example of Tomcat directory structure analysis, I believe that most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to understand it!
Open the unzipped directory of tomcat to see the following directory structure:
Bin directory of 1.Tomcat:
The bin directory is mainly used to store tomcat commands, there are two main categories, one is ending in .sh (linux command), the other is ending in .bat (windows command).
Many environment variables are set here, for example, JDK path and tomcat path can be set.
Startup is used to start tomcat
Shutdown is used to shut down tomcat
Modify catalina to set the memory of tomcat
Conf directory of 2.Tomcat:
The conf directory is mainly used to store some configuration files for tomcat.
Server.xml can set port number, set domain name or IP, default loaded project, request code
Web.xml can set the file types supported by tomcat
Context.xml can be used to configure data sources and so on.
Tomcat-users.xml is used to configure users and permissions for managing tomcat
You can set the default loaded projects in the Catalina directory
Lib directory of 3.Tomcat:
The lib directory is mainly used to store jar packages that need to be loaded for tomcat to run.
For example, we can add packages like jdbc that connect to the database to the lib directory.
Logs directory of 4.Tomcat:
The logs directory is used to store the log files generated during the operation of tomcat, and it is very important to output the logs in the console. (emptying will not affect the operation of tomcat)
In a windows environment, the output log of the console is in the catalina.xxxx-xx-xx.log file
In a linux environment, the output log of the console is in the catalina.out file
5.temp:
Temp directory users store temporary files generated during the operation of tomcat. (emptying will not affect the operation of tomcat)
Webapps directory of 6.Tomcat:
The webapps directory is used to store applications, and when tomcat starts, it loads the applications in the webapps directory. You can publish applications in the form of folders, war packages, and jar packages.
Of course, you can also place the application anywhere on the disk and map it in the configuration file.
Work directory of 7.Tomcat:
The work directory is used to hold tomcat's compiled files at run time, such as JSP compiled files.
Clear the work directory, and then restart tomcat to clear the cache
The above is all the contents of the article "sample Analysis of Tomcat Directory structure". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.