ubuntu feisty下的tomcat5.5问题

默认情况下,在ubuntu feisty下安装tomcat5.5会出现问题,可以启动,但其实是假象。

sudo /etc/init.d/tomcat status

会提示没有运行。

安装方法:

sudo aptitude install sun-java6-jdk tomcat5.5

然后处理:

sudo gedit /etc/default/tomcat5.5

修改JAVA_HOME环境变量:

JAVA_HOME=/usr/lib/jvm/java-6-sun

之后运行tomcat,就出现上述问题。
问题的解决办法:

cd /var/log/tomcat5.5/
sudo rm catalina.out
sudo touch catalina.out
sudo chown tomcat55:nogroup catalina.out
sudo chmod uo-wrx catalina.out

具体请参考:

http://ubuntuforums.org/showthread.php?t=436295

http://cefn.com/blog/ubuntutomcat.html

https://bugs.launchpad.net/ubuntu/+source/tomcat5.5/+bug/118592

This entry was posted in Linux and tagged , , . Bookmark the permalink.

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please copy the string X3ist7 to the field below:

以新浪微博帐号登录