tomcat 启动 报错Neither the JAVA_HOME nor the JRE_HOME environment variable is definedtemp

catalina.sh 加入环境

export JAVA_HOME=/usr/local/jdk1.7.0_79
export CATALINA_HOME=/home/sa/webserver/tomcat7
export CATALINA_BASE=/home/sa/webserver/tomcat7
export CATALINA_TMPDIR=/home/sa/webserver/tomcat7/
原文地址:https://www.cnblogs.com/signheart/p/2e8b442b08a839e87d354bece20428ff.html