vi /opt/tomcat/bin/catalina.sh
CATALINA_HOME=/opt/tomcat
JAVA_HOME=/opt/jdk1.6.0_45
=======================================
vi /etc/profile
export CATALINA_HOME=/opt/tomcat
vi /opt/tomcat/bin/catalina.sh
CATALINA_HOME=/opt/tomcat
JAVA_HOME=/opt/jdk1.6.0_45
=======================================
vi /etc/profile
export CATALINA_HOME=/opt/tomcat