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 执行即可
转载于:https://my.oschina.net/u/1394615/blog/359047
本文详细阐述了在运行Tomcat应用服务器时遇到的问题及解决方案,重点在于正确配置JAVA_HOME和TOMCAT_HOME环境变量,避免无法ping到本地服务器的情况。通过在start.sh文件中添加JAVA_HOME路径,并确保所有必要的环境变量被正确设置,使得Tomcat能够顺利启动。


被折叠的 条评论
为什么被折叠?



