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 执行即可


郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。