启动tomcat的时候 ,出现如下问题
[root@root bin]# sh startup.sh
Cannot find ./catalina.shThe file is absent or does not have execute permission
This file is needed to run this program
是由于没有权限
解决办法:
给bin下面的所有*sh赋予权限
[root@root bin]# chmod 755 *.sh
[root@root bin]# ./startup.sh
Using CATALINA_BASE: /usr/java/tomcat/apache-tomcat6.0-8090
Using CATALINA_HOME: /usr/java/tomcat/apache-tomcat6.0-8090
Using CATALINA_TMPDIR: /usr/java/tomcat/apache-tomcat6.0-8090/temp
Using JRE_HOME: /usr/java/jdk/jdk1.6.0_45
Using CLASSPATH: /usr/java/tomcat/apache-tomcat6.0-8090/bin/bootstrap.jar