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
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.
1. Based on port 1, modify listening port, add file read path (based on httpd directory) 2, dns configuration 3, configure vhost file 4, test win,Web server uses port 80 by default, so you don't need to add ": 8" to the site at port 80.
LVM logical volume manager LVM allows users to dynamically adjust hard disk resources. When deploying logical volumes deploying LVM, you need to configure physical volumes, volume groups, and logical volumes one by one. (PV operation-> VG operation-> LV operation) when deploying logical volumes, pay attention to the problem of cutting units. Cutting logical volumes
Author | Chen Jie, Gaoxiang Forest Industry News Kubernetes document add Anti-racial Discrimination statement all Kubernetes-related documents uniformly add the anti-racial discrimination statement Header to express the community's firm stand against racial discrimination. In addition, gol
How to buy a server and how to choose a server? In order to let you know more about the server, the editor summed up the following, let's look down together. 1. It is recommended that you buy ECS (Cloud Virtual Machine) that can be added in size. 2. You should be talking about configuring the language environment. ECS is equivalent to the rough house you bought.