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