1.打开BIN下面的startup.sh
如下:
#添加java环境变量
export JAVA_HOME=/root/jdk1.6.0_13
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JRE_HOME=$JAVA_HOME/jre
export TOMCAT_HOME=/root/jakarta-tomcat-5.0.30
2.打开 etc//environment 如下
CATALINA_BASE=/root/jakarta-tomcat-5.0.30
CATALINA_HOME=/root/jakarta-tomcat-5.0.30