linux系统下面启动Tomcat 一直启动不了
我一启动就出现这个问题。UsingCATALINA_BASE:/data/tomcat/swmzPushMonitor-newUsingCATALINA_HOME:/da...
我一启动就出现这个问题。
Using CATALINA_BASE: /data/tomcat/swmzPushMonitor-new
Using CATALINA_HOME: /data/tomcat/swmzPushMonitor-new
Using CATALINA_TMPDIR: /data/tomcat/swmzPushMonitor-new/temp
Using JRE_HOME: /usr/local
Usage: catalina.sh ( commands ... )
commands:
debug Start Catalina in a debugger
debug -security Debug Catalina with a security manager
jpda start Start Catalina under JPDA debugger
run Start Catalina in the current window
run -security Start in the current window with security manager
start Start Catalina in a separate window
start -security Start in a separate window with security manager
stop Stop Catalina
stop -force Stop Catalina (followed by kill -KILL)
version What version of tomcat are you running?
求远程,求协助。解决者加高分
271520594 展开
Using CATALINA_BASE: /data/tomcat/swmzPushMonitor-new
Using CATALINA_HOME: /data/tomcat/swmzPushMonitor-new
Using CATALINA_TMPDIR: /data/tomcat/swmzPushMonitor-new/temp
Using JRE_HOME: /usr/local
Usage: catalina.sh ( commands ... )
commands:
debug Start Catalina in a debugger
debug -security Debug Catalina with a security manager
jpda start Start Catalina under JPDA debugger
run Start Catalina in the current window
run -security Start in the current window with security manager
start Start Catalina in a separate window
start -security Start in a separate window with security manager
stop Stop Catalina
stop -force Stop Catalina (followed by kill -KILL)
version What version of tomcat are you running?
求远程,求协助。解决者加高分
271520594 展开
2个回答
展开全部
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
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
追问
才接触liunx 不太明白
哥们儿能说的通俗点吗?
因为有其他项目是其他的jdk版本。
所以只能对我这一个项目指定一个jdk版本
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
nohup TOMCAT目录下的startup.sh路径 -b ip地址 &
追问
这位兄弟。这个命令不太明白 。
能帮帮忙吗?
追答
百度回答审核太慢,Q你了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询