Therefore, the name in the table appears simply asĬatalina. Referring to these, we have omitted the filename extension because catalina.bat has the same meaning for Microsoft Windows users Table 1-1 lists these scripts and describes each. Invoke directly are provided both as shell script files for Unix (. That you will use for starting and stopping Tomcat. There are several scripts in the bin directory Generic installation case-you should use the command-line scripts that reside in the tar.gz) from the Tomcat downloads page-what we'll call the If you installed Tomcat by downloading theīinary release archive (. Details about each of these package-specificĬases are given in the next several sections. Or, if you installed Tomcat on Windows via the graphical installer from, you should start and stop If you installed Tomcat from a Linux RPM package, you should use the init script that came with that package to start and stop The easiest way to check what's your CATALINA_BASE and CATALINA_HOME is by running startup.sh, for example: $ /usr/share/tomcat7/bin/startup.The correct way to start and stop Tomcat depends on how you installed it. endorsed - Libraries that override standard "Endorsed Standards".temp - Directory used by the JVM for temporary files>.work - Temporary working directories for web applications. webapps - Automatically loaded web applications.lib - Libraries and classes, as explained below.conf - Server configuration files (including server.xml).bin - Only: setenv.sh (*nix) or setenv.bat (Windows), tomcat-juli.jar.When running with a separate CATALINA_HOME and CATALINA_BASE, theįiles and directories are split as following: To make this possible, you can set the CATALINA_BASEĮnvironment variable to the directory that contains the files for your Tomcat binary distribution shared among multiple users on the same In many circumstances, it is desirable to have a single copy of a $CATALINA_HOME/bin/catalina.sh start (Unix) Or ?TALINA_HOME%\bin\catalina.bat start (Windows) (4.1) Tomcat can be started by executing one of the followingĬommands: ?TALINA_HOME%\bin\startup.bat (Windows) Setenv script, because they are used to find that file. You cannot configure CATALINA_HOME and CATALINA_BASE variables in the Specify the location of Apache Tomcat and the location of its active The CATALINA_HOME and CATALINA_BASE environment variables are used to Running with separate CATALINA_HOME and CATALINA_BASE is documented in RUNNING.txt which say: If multiple instances are not configured, $CATALINA_BASE is the same as $CATALINA_HOME. Optionally, Tomcat may be configured for multiple instances by defining $CATALINA_BASE for each instance. In other words: CATALINA_HOME is required and CATALINA_BASE is optional.ĬATALINA_HOME represents the root of your Tomcat installation. If you're running multiple instances, then you need both variables, otherwise only CATALINA_HOME. What do you then place into each directory?īase contains conf, logs, webapps, work and temp. What does this allow the administrator to do?Īllow for more than 1 tomcat to run at the same time where each tomcat instance can have their own apps. Ubuntu started following this way of thinking due to it being more logical: it makes it easier to run 2 tomcats but does not disable running 1 tomcat where setting them both to the same value would require everyone to edit the base value. If you have 1 tomcat you can set them to the same value but good practice would suggest you plan ahead and keep them separate: you never know if you need more than one tomcat. When should they be separated? When should these two variables be the same? So you have 1 home and can have more than 1 base. Here's the questions: Why are these two variables separated? When should they be separated? What does this allow the administrator to do? What do you then place into each directory? When should these two variables be the same? What does ASF recommend for standard practice?Ĭ points to the location of the common information.Ĭatalina.base points to the directory where all the instance specific information are held. That question does allude to the "appBase" parameter, which is documented in the Tomcat6 documentation for the Host container in the configuration file. I found this question with an illuminating answer on AskUbuntu but there isn't much specifically on CATALINA_HOME vs. Presumably, running with a single CATALINA_HOME has been good for a long time, but Ubuntu switched. However, I don't seem to be able to find anything that explains this. That document also suggests that setting CATALINA_BASE would be done to make multiple instances available. I found this document which suggests that not setting CATALINA_BASE would make it equivalent to CATALINA_HOME. I can't find a definitive answer to why Ubuntu would set the CATALINA_BASE environment variable, making it different from CATALINA_HOME.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |