linux中启动tomcat,追加一些环境变量

 

显示加入一些export参数的start.sh,这个shell最后会调用tomcat的start.sh

cat start.sh

export JAVA_OPTS='-Xms5120m -Xmx10240m'

export TOMCAT_HOME=/a/b/c/apache-tomcat-6.0.10

export CATALINA_BASE=/a/b/c/apache-tomcat-6.0.10

export CATALINA_HOME=/a/b/c/apache-tomcat-6.0.10

export CATALINA_TMPDIR=/a/b/local/tmp

export JRE_HOME=/usr/lib/jvm/java-1.6.0-sun-1.6.0.11.x86_64

${TOMCAT_HOME}/bin/startup.sh

tail -f $TOMCAT_HOME/logs/catalina.out

你可能感兴趣的:(tomcat,sh,Export)