天天看点

命令行启动tomcat服务器,提示Cannot find ./catalina.sh

问题:tomcat/bin目录执行sh ./startup.sh启动tomcat,提示如下

Cannot find ./catalina.sh

The file is absent or does not have execute permission

This file is needed to run this program

解决方法:对./catalina.sh没有访问权限,在tomcat/bin目录执行

chmod +x *.sh后,再启动就会成功