11

I am not yet a Linux guy and I have some problem trying to add a new permanent environment variable.

So I have to set a new environment variable named CATALINA_HOME with this value: /opt/apache-tomcat-8.0.23

What can I do to set it permanently?

Tnx

AndreaNobili
  • 4,539
  • 10
  • 26
  • 36

1 Answers1

16

Add the following to the /etc/profile file (for system wide change) or to ~/.profile for local user.

export CATALINA_HOME=/opt/apache-tomcat-8.0.23
muru
  • 197,895
  • 55
  • 485
  • 740
jijinp
  • 859
  • 6
  • 12