Tomcat启动报错:This file is needed to run this program
Posted 听歌敲代码
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Tomcat启动报错:This file is needed to run this program相关的知识,希望对你有一定的参考价值。
Tomcat版本为 8.5.29。
1.情景
kill调用tomcat进程后,重启tomcat报如下错误:
Cannot find /usr/local/apache-tomcat-8.5.29/bin/setclasspath.sh This file is needed to run this program
2.解决方法
编辑 catalina.sh,发现前两行多了如下内容:
export CATALINA_BASE=$CATALINA_BASE2
export CATALINA_HOME=$CATALINA_HOME2
于是注释掉这两行,重启tomcat成功。至于为什么多了这两行,不晓得原因。怎么发现这两行的呢,对比了下相同版本的tomcat的 catalina.sh
以上是关于Tomcat启动报错:This file is needed to run this program的主要内容,如果未能解决你的问题,请参考以下文章
nginx+tomcat 报错:『an upstream response is buffered to a temporary file 』
The file is absent or does not have execute permission This file is needed to run this program
tomcat报错:This is very likely to create a memory leak问题解决
tomcat报错:This is very likely to create a memory leak问题解决
springboot启动提示连接mysql报错:java.sql.SQLNonTransientConnectionException: CLIENT_PLUGIN_AUTH is required(
Address localhost:1099 is already in use(IDEA启动Tomcat报错1099 is already in use)