linux启动tomcat失败 30
UsingCATALINA_BASE:/root/webhr/apache-tomcat-6.0.36UsingCATALINA_HOME:/root/webhr/apa...
Using CATALINA_BASE: /root/webhr/apache-tomcat-6.0.36
Using CATALINA_HOME: /root/webhr/apache-tomcat-6.0.36
Using CATALINA_TMPDIR: /root/webhr/apache-tomcat-6.0.36/temp
Using JRE_HOME: /usr/java/jre1.8.0_60
Using CLASSPATH: /root/webhr/apache-tomcat-6.0.36/bin/bootstrap.jar
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, waiting up to 5 seconds for the process to end
stop n Stop Catalina, waiting up to n seconds for the process to end
stop -force Stop Catalina, wait up to 5 seconds and then use kill -KILL if still running
stop n -force Stop Catalina, wait up to n seconds and then use kill -KILL if still running
version What version of tomcat are you running?
Note: Waiting for the process to end and use of the -force option require that $CATALINA_PID is defined 展开
Using CATALINA_HOME: /root/webhr/apache-tomcat-6.0.36
Using CATALINA_TMPDIR: /root/webhr/apache-tomcat-6.0.36/temp
Using JRE_HOME: /usr/java/jre1.8.0_60
Using CLASSPATH: /root/webhr/apache-tomcat-6.0.36/bin/bootstrap.jar
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, waiting up to 5 seconds for the process to end
stop n Stop Catalina, waiting up to n seconds for the process to end
stop -force Stop Catalina, wait up to 5 seconds and then use kill -KILL if still running
stop n -force Stop Catalina, wait up to n seconds and then use kill -KILL if still running
version What version of tomcat are you running?
Note: Waiting for the process to end and use of the -force option require that $CATALINA_PID is defined 展开
4个回答
展开全部
Linux下启动tomcat的时候,如果服务启动不成功,可以到查看logs文件夹下的catalina.out
日志文件,cat我的日志文件可得到如下的错误信息:
cat catalina.out
Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 8101; nested exception is:
java.net.BindException: Address already in use
Feb 27, 2011 3:25:39 PM org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already. Could not load com.funambol.server.tools.directorymonitor.FileChangeEvent. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
从字面上来看,是我的8101端口被占用了,应该是rmi需要用到这个端口,于是使用
netstat -anp
命令来查看各端口被进程占用的情况,这个命令输出包括进程的pid,得到这个pid之后,使用命令:
ps -ef|grep PID
即可查看进程的详细情况。
如果确认此进程可停止的话,
kill pid
重启tomcat就OK了!
日志文件,cat我的日志文件可得到如下的错误信息:
cat catalina.out
Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 8101; nested exception is:
java.net.BindException: Address already in use
Feb 27, 2011 3:25:39 PM org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already. Could not load com.funambol.server.tools.directorymonitor.FileChangeEvent. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
从字面上来看,是我的8101端口被占用了,应该是rmi需要用到这个端口,于是使用
netstat -anp
命令来查看各端口被进程占用的情况,这个命令输出包括进程的pid,得到这个pid之后,使用命令:
ps -ef|grep PID
即可查看进程的详细情况。
如果确认此进程可停止的话,
kill pid
重启tomcat就OK了!
展开全部
1、确定Java是否安装
2、配置Java+Tomcat的环境变量
3、给tomcat中bin目录下运行.sh脚本的权限(chmod 777 /*.sh)
完成以上三个步骤,就没啥问题了吧!
2、配置Java+Tomcat的环境变量
3、给tomcat中bin目录下运行.sh脚本的权限(chmod 777 /*.sh)
完成以上三个步骤,就没啥问题了吧!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
看看启动时报什么错了,环境变量都设了吗?
检查一下logs文件夹下catalina.out,看看有没有错误信息输出。
检查一下logs文件夹下catalina.out,看看有没有错误信息输出。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |