启动linux上的tomcat时
进入tomcat/bin目录,执行启动的时候出现如下错误:
[root@cdh03 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目录下 执行这条命令
[root@cdh03 bin]# chmod +x *.sh
再执行 sh catalina.sh就可以啦,
然后用sh startup.sh启动成功