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启动成功