简体   繁体   中英

Tomcat Won't Start

I installed Tomcat on a Raspberry Pi I got, and everything was working great. 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. Unfortunately, I wasn't having any luck hitting the Tomcat manager (ie. :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. I still can't access the Tomcat manager, though. Furthermore when I look at the processes running on my Pi, Tomcat is nowhere to be found.

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. Doh!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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