export $JAVA_HOME=你的jdk安装的目录 比如/usr/local/jdk1.6
export CLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:.
export TOMCAT_HOME=/usr/local/tomcat6.0
cd $TOMCAT_HOME/bin
sh startup.sh
然后看启动了没有
里面的参数换成自己实际的目录
/data/home/soso/tomcat6.0/bin> sh -x startup.sh
+ os400=false
+ darwin=false
+ case "`uname`" in
++ uname
+ PRG=startup.sh
+ '[' -h startup.sh ']'
++ dirname startup.sh
+ PRGDIR=.
+ EXECUTABLE=catalina.sh
+ false
+ '[' '!' -x ./catalina.sh ']'
+ exec ./catalina.sh start 看看你执行的时候这里是啥?
Using CATALINA_BASE: /data/home/soso/tomcat6.0
Using CATALINA_HOME: /data/home/soso/tomcat6.0
Using CATALINA_TMPDIR: /data/home/soso/tomcat6.0/temp
Using JRE_HOME: /usr/local/jdk1.6
Using CLASSPATH: /data/home/soso/tomcat6.0/bin/bootstrap.jar
nohup TOMCAT目录下的startup.sh路径 -b ip地址 &