PID文件存在,但进程未运行 [英] PID file exists, but process is not running

查看:612
本文介绍了PID文件存在,但进程未运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在centos6中工作.我已经安装了tomcat6.首先,一切正常.但是重新启动服务器后,tomcat6无法正常工作.

I'm working in centos6. I have installed tomcat6. At the first all works fine. But after restarting the server tomcat6 did not work properly.

当我执行此命令行时:"服务tomcat6状态" 我得到: " PID文件存在,但进程未运行[ÉCHOUÉ] " 我检查了日志文件"catalina.out",并收到以下错误消息:

When I execute this command line:"service tomcat6 status" I get: "PID file exists, but process is not running [ÉCHOUÉ]" I checked to the log file "catalina.out" and I get this error:

GRAVE:StandardServer.await:创建[8005]:

GRAVE: StandardServer.await: create[8005]:

java.net.BindException: Cannot assign requested address
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(Unknown Source)
        at java.net.ServerSocket.bind(Unknown Source)
        at java.net.ServerSocket.<init>(Unknown Source)
        at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
        at org.apache.catalina.startup.Catalina.await(Catalina.java:657)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:617)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

提前感谢您的帮助

推荐答案

您正在运行tomcat的哪个端口? 端口80还是8080? 在同一端口上运行任何其他服务?你检查了吗? 您可以使用其进程ID杀死tomcat

Which port you are running tomcat? port 80 or 8080? Any other services running on the same port? Did you check? You can kill tomcat using its process id

ps -ax | grep tomcat
kill -9 <PID>

如果您确定tomcat是您正在运行的唯一Java应用程序,则可以使用杀死它,

if you are sure tomcat is the only java application you are running, then you can kill it using,

killall -9 java

重新启动时,用尾巴观看catelina.out.

watch the catelina.out using tail when you restart it.

类似这样,具体取决于您的安装方法/路径:

something like this,depending on your installation method/path:

tail -f /usr/share/apache-tomcat-6.0.37/logs/catalina.out

也请在配置此PID文件的初始脚本或setenv.sh中检入.我没用过

Also check in you init scripts or setenv.sh where you configured this PID file. I never used it.

这篇关于PID文件存在,但进程未运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆