linux tomcat 汤姆凯特

IEDA 启动不了 tomcat .

Application Server was not connected before run configuration stop, reason:
Unable to ping server at localhost:1099

缘由是我tomcat 环境没有配置好.没有指定JAVA_HOME和TOMCAT_HOME


在start.sh 中添加好JAVA_HOME 以后.
JAVA_HOME=/usr/local/jdk1.8.0_25
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
TOMCAT_HOME=/home/MySoft/apache-tomcat-7.0.57

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


cannot find bin setclasspath sh this file is needed to run this program

在  bin/setclasspath.sh  添加你的JAVA_HOME
 直接执行的话
Cannot find /Home/apache-tomcat-7.0.57/bin/setclasspath.sh
This file is needed to run this program
 

使用 $sudo 执行便可
相关文章
相关标签/搜索