我不了解#service tomcat6状态的结果 [英] I don't understand the results from #service tomcat6 status

查看:149
本文介绍了我不了解#service tomcat6状态的结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使Tomcat 6在Fedora 14上运行.尽管我以前设法使Apache运行,但对于这种事情我还是很陌生的.

I'm trying to get Tomcat 6 running on Fedora 14. I'm quite new to this sort of thing, though I have managed to get Apache running before.

我怀疑我在一些非常基本的级别上犯了错误,因为测试页( http://localhost:8080 )找不到.

I suspect I've made mistakes on some quite basic levels, because the test page (http://localhost:8080) can't be found.

如果我尝试以root用户或普通用户身份查看服务的状态,这就是我得到的:

If I try to check the service's status, as root or as an ordinary user, this is what I get:

tomcat6 (pid) is running...[OK]  
tomcat6 lockfile exists but process is not running [FAILED]

所以我很困惑,因为似乎有人告诉我Tomcat 6既可以运行,也可以不运行.如果有人能告诉我这到底是在告诉我什么,以及我接下来的猜疑应该转至何处,我将不胜感激.

So I'm confused, because I seem to be being told that Tomcat 6 both is and isn't running. If anyone can tell me what this really is telling me, and where my suspicions should turn next, I'd be very grateful.

文档中没有提及此类事情.

There's no mention of any of this sort of thing in the docs.

推荐答案

我遇到了同样的问题.我发现beetstra的答案是必要的,但还不够.我还需要更改一些权限.正如此错误报告所指出的那样:

I had the same problem. I found beetstra's answer to be necessary but insufficient. I also needed to change some permissions. As indicated (mostly) by this bug report:

https://bugzilla.redhat.com/show_bug.cgi?id=708694

# get rid of pid
rm /var/run/tomcat6.pid

# give tomcat sufficient permissions
chown tomcat:tomcat -R /usr/share/tomcat6/conf/
chown tomcat:tomcat -R /usr/share/tomcat6/conf
chown tomcat:tomcat -R /usr/share/tomcat6/logs

之后,我可以成功启动tomcat:

After that I could start tomcat successfully:

service tomcat6 start 
Starting tomcat6:              [  OK  ]

这篇关于我不了解#service tomcat6状态的结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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