I am working my way through the RUNNING.txt file for installing Tomcat.
It says:
(3.1) Set CATALINA_HOME (required) and CATALINA_BASE (optional)
The CATALINA_HOME environment variable should be set to the location of the
root directory of the "binary" distribution of Tomcat.
So I know I can do
export CATALINA_HOME=/usr/local/tomcat
But that will be gone next time I reboot the machine.
Should I put these in the root accounts .bashrc or .bash_profile or somewhere else?
I am using setenv.sh bash script, which is located in $TOMCAT_HOME/bin directory. catalina.sh script is referring to it by default.
Forgot to mention, that this script is not there by default. You need to create it and give tomcat user (or whatever user you use to run tomcat) to be able to execute it.