The file is absent or does not have execute permission This file is needed to run this program.

运行:

$ ./startup.sh

提示:

Cannot find ./catalina.sh
The file is absent or does not have execute permission
This file is needed to run this program.

说明catalina.sh没有执行权限.把 ~/apache-tomcat-6.0.33/bin/目录下的所有sh文件的权限都设为755(当然 也包括catalina.sh)即可:

$ chmod 755 *.sh

再次运行startup.sh,显示的结果正常:

$ ./startup.sh
Using CATALINA_BASE: /root/apache-tomcat-6.0.33
Using CATALINA_HOME: /root/apache-tomcat-6.0.33
Using CATALINA_TMPDIR: /root/apache-tomcat-6.0.33/temp
Using JRE_HOME: /usr
Using CLASSPATH: /root/apache-tomcat-6.0.33/bin/bootstrap.jar

本文为原创文章,转载请注明出处。

原文链接:https://850406.xyz/post/the-file-is-absent-or-does-not-have-execute-permission-this-file-is-needed-to-run-this-program

评论(0)

还没有评论,来抢沙发吧~

验证码