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,然后再次启动,启动成功

猜你喜欢

转载自boat-in-sea.iteye.com/blog/2225132
今日推荐