简体   繁体   English

Tomcat无法启动

[英]Tomcat Won't Start

I installed Tomcat on a Raspberry Pi I got, and everything was working great. 我在安装的Raspberry Pi上安装了Tomcat,并且一切正常。 However, yesterday, it seemed to stop working. 但是,昨天似乎停止工作了。 The first thing that I noticed, was that when I attempted to run the startup script, I got the following error... 我注意到的第一件事是,当我尝试运行启动脚本时,出现以下错误...

touch: cannot touch `/opt/lib/apache-tomcat-7.0.35/logs/catalina.out': Permission denied
/opt/lib/apache-tomcat-7.0.35/bin/catalina.sh: 391: /opt/lib/apache-tomcat-7.0.35/bin/catalina.sh: cannot create /opt/lib/apache-tomcat-7.0.35/logs/catalina.out: Permission denied

This hadn't happened before, but whatever...I did a chmod catalina.out and the error went away. 这以前从未发生过,但是无论如何...我做了chmod catalina.out,错误消失了。 Unfortunately, I wasn't having any luck hitting the Tomcat manager (ie. :8080). 不幸的是,我没有碰到Tomcat管理器的运气(即:8080)。 I looked at the output from the startup script and noticed that JRE home was set to /usr, which didn't seem right, so I changed the Tomcat startup script to point JRE_HOME to /usr/lib/jvm/java-1.6.0-openjdk-armhf. 我查看了启动脚本的输出,发现JRE home设置为/ usr,这似乎不正确,因此我将Tomcat启动脚本更改为将JRE_HOME指向/usr/lib/jvm/java-1.6.0。 -openjdk-armhf。 I still can't access the Tomcat manager, though. 但是,我仍然无法访问Tomcat管理器。 Furthermore when I look at the processes running on my Pi, Tomcat is nowhere to be found. 此外,当我查看在Pi上运行的进程时,找不到Tomcat。

Can anyone help me with this? 谁能帮我这个?

I wrote an alias to run the startup script, and forgot to include sudo before the path to the script. 我写了一个别名来运行启动脚本,但是忘记了在脚本路径之前包含sudo。 Doh! h!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM