下载完整的包,官网中bootstrap.jar包有的没有
tomcat文件都不要动
etc/profile中配置如下jdk:
export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.15
export CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar
export CATALINA_HOME=/usr/share/tomcat6
export CATALINA_BASE=/usr/share/tomcat6
export PATH=$PATH:$JAVA_HOME/bin:$CATALINA_HOME/bin/
Cannot find ./catalina.sh
The file is absent or does not have execute permission
This file is needed to run this program
没有给bin目录下的文件授权可执行权限:
chmod +x bin/*.sh
引用网站:
http://bbs.csdn.net/topics/350161171
立即执行profile:
# . /etc/profile
注意: . 和 /etc/profile 有空格