1.error: com.jcraft.jsch.JSchException: Auth cancel

用户执行权限错误,在node信息中‘CTL Username’应为'ctier'而不是root。


linux 下 启动tomcat 报:

Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program

先看Tomcat的startup.bat,它调用了catalina.sh,而catalina.bat则调用了setclasspath.sh。只要在setclasspath.sh的开头声明环境变量,打开tomcat的bin目录下面的setclasspath.sh,添加红色部分,路径自己修改。

#!/bin/sh
# -----------------------------------------------------------------------------
# Set CLASSPATH and Java options
#
# $Id: setclasspath.sh 467182 2006-10-23 23:47:06Z markt $
# -----------------------------------------------------------------------------

export JAVA_HOME=/opt/jdk1.7.0_17

export JRE_HOME=/opt/jdk1.7.0_17/jre