In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2024-09-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
What is the principle of catalina.bat in Tomcat? Many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can gain something.
Validate CATALINA_HOME environment variables
Verify that the CATALINA_HOME setting is correct, and if not, reset the CATALINA_HOME environment variable.
If catalina.bat is not found in the CATALINA_HOME\ bin directory, it ends (this is hardly the case here, unless catalina.bat is not in tomcat's bin directory)
Set environment variabl
1. Look for the setenv.bat file in the CATALINA_BASE and CATALINA_BASE directories and execute it. If you can't find it, it won't be executed.
two。 Find the setclasspath.bat file and execute it. If you can't find it, it ends.
Setclasspath.bat sets the environment variables related to java.
Tomcat log management
Add tomcat-juli.jar to the classPath environment variable.
And add the profile path of the log to the LOGGING_CONFIG environment variable
Tomcat-juli.jar action
Apache Tomcat implements several key elements of java.util.logging by one of its own. This implementation is called JULI. The core component of the implementation is a customized LogManager, which can obtain different web applications (and different class loader) running in Tomcat. He supports the configuration of separate log configurations for applications. When a web application is uninstalled from the inside, it will be notified by Tomcat so that the classes he references can be cleared to avoid memory leaks.
Console information output
The output is as follows:
Set the startup class of tomcat
Set parameters related to tomcat remote debugging
When remote debugging is enabled, Host and Port are configured in eclipse, and then Debug can debug programs in tomcat remotely.
Other boot modes
In addition to the remote debugging startup mode, there are several startup modes as follows
From this, you can see that starting tomcat and shutting down tomcat are all catalina.bat calls.
The difference between run and start is whether to start tomcat in a new window.
Run is executed in this window.
Start is to open a new window to execute.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
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.