在多余的tomcat的bin文件夹下的startup.sh中编辑,加上
export CATALINA_HOME=/usr/local/apache-tomcat-7.0.54
export CATALINA_BASE=/usr/local/apache-tomcat-7.0.54
在conf下的server.xml上要修改
<Server port="8015" shutdown="SHUTDOWN">
<Connector port="8082" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
JAVA_HOME不存在,可能切换root就行