Linux——Cannot find ./catalina.sh The file is absent or does not have execute permission This file is

现象

在Linux环境下运行Tomcat,当执行 ./startup.sh 命令时报以下提示
Cannot find ./catalina.sh
The file is absent or does not have execute permission
This file is needed to run this program

原因

没有执行权限运行该程序

解决方法

在tomcat 的bin目录下 执行这条命令

chmod +x *.sh

再次执行 sh catalina.sh通过,然后用sh startup.sh启动成功。

发布了705 篇原创文章 · 获赞 666 · 访问量 143万+

猜你喜欢

转载自blog.csdn.net/qq_36761831/article/details/104954388