linux启动或关闭tomcat时提醒“Cannot find ./catalina.sh”
linux启动或关闭tomcat时提示“Cannot find ./catalina.sh”
问题描述:
在进入tomcat的bin目录后,执行指令./startup.sh或者./shutdown.sh,结果提示如下:
Cannot find ./catalina.sh
The file is absent or does not have execute permission
This file is needed to run this program
分析:
提示信息为文件缺失或没有执行权限,既然bin目录下存在catalina.sh文件,那么就是权限问题了
解决办法:
在tomcat的bin目录下执行指令:chmod +x *.sh,然后再次启动,启动成功
问题描述:
在进入tomcat的bin目录后,执行指令./startup.sh或者./shutdown.sh,结果提示如下:
Cannot find ./catalina.sh
The file is absent or does not have execute permission
This file is needed to run this program
分析:
提示信息为文件缺失或没有执行权限,既然bin目录下存在catalina.sh文件,那么就是权限问题了
解决办法:
在tomcat的bin目录下执行指令:chmod +x *.sh,然后再次启动,启动成功