linux 下部署web项目,启动 tomcat 后报错
[root@node01 bin]# sh startup.sh
Cannot find ./catalina.sh
The file is absent or does not have execute permission
This file is needed to run this program
解决办法:
给 .sh
文件授权
[root@node01 bin]# chmod 777 catalina.sh
再启动,显示启动成功
[root@node01 bin]# sh startup.sh
Using CATALINA_BASE: /home/tomcat2
Using CATALINA_HOME: /home/tomcat2
Using CATALINA_TMPDIR: /home/tomcat2/temp
Using JRE_HOME: /home/jdk
Using CLASSPATH: /home/tomcat2/bin/bootstrap.jar:/home/tomcat2/bin/tomcat-juli.jar
Tomcat started.