欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

linux下执行命令报错Cannot find ./catalina.sh The file is absent or does not have execute permission

程序员文章站 2024-02-28 19:47:10
...

启动linux上的tomcat时
进入tomcat/bin目录,执行启动的时候出现如下错误:

[[email protected] bin]# ./startup.sh
Cannot find ./catalina.sh
The file is absent or does not have execute permission
This file is needed to run this program

原因:文件没有权限
解决方法:给bin文件夹赋权

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

[[email protected] bin]# chmod +x *.sh  

再执行 sh catalina.sh就可以啦,

然后用sh startup.sh启动成功

相关标签: linux tomcat