[plug] Where to set an environment variable in CentOS?

Daniel Foote freefoote at gmail.com
Mon Oct 4 07:14:13 WST 2010

> I installed Tomcat6 on a CentOS distrib and I need to set an environment
> variable as indicated here in a user's post:
> ------------------
> Add the $CATALINA_HOME environment variable to your PATH.
> # vi /etc/profile
> CATALINA_HOME=/usr/local/jakarta-tomcat-5.0.19
> ------------------
> I checked the /etc/profile file and it doesn't seem to be the best place to
> add it.

Last time I installed Tomcat, I just adjusted the variables in the
"start-catalina.sh" script which did the job. Just have to be careful if
upgrading Tomcat, but we never had to do that with our live installations (4
of them) in the 18 months we had them.

In our case, we adjusted the memory limits for the instances, but any other
variables should work there.

I hope this helps!

Daniel Foote.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20101003/9a112ae2/attachment.html>

More information about the plug mailing list