fedora 一点也不差,tomcat 偷懒的安装方法:
yum install tomcat6-docs-webapp tomcat6-admin-webapps |
然后就ok了。
别忘了编辑 /etc/tomcat6/tomcat-user.xml 添加管理用户。
如果不需要文档
yum install tomcat6-admin-webapps |
#好像文件的权限有问题,
不少文件在安装后是 root:tomcat 权限, 或者root:root权限, manager admin(host-manager) 都无法启动, 一堆类似这样的错误:
把文件own 修改了一番后manager 才起来。
java.io.FileNotFoundException: /usr/share/tomcat6/logs/host-manager.2010-06-18.log (Permission denied)
SEVERE: IOException while saving persisted sessions: java.io.FileNotFoundException: /usr/share/tomcat6/work/Catalina/localhost/sample/SESSIONS.ser (Permission denied)
java.io.FileNotFoundException: /usr/share/tomcat6/work/Catalina/localhost/sample/SESSIONS.ser (Permission denied)
java.io.FileNotFoundException: /usr/share/tomcat6/work/Catalina/localhost/sample/SESSIONS.ser (Permission denied)
java.io.FileNotFoundException: /usr/share/tomcat6/logs/catalina.2010-06-18.log (Permission denied)
java.io.FileNotFoundException: /usr/share/tomcat6/logs/localhost.2010-06-18.log (Permission denied)
java.io.FileNotFoundException: /usr/share/tomcat6/logs/manager.2010-06-18.log (Permission denied)
java.io.FileNotFoundException: /usr/share/tomcat6/logs/host-manager.2010-06-18.log (Permission denied)
SEVERE: IOException while saving persisted sessions: java.io.FileNotFoundException: /usr/share/tomcat6/work/Catalina/localhost/manager/SESSIONS.ser (No such file or directory)
java.io.FileNotFoundException: /usr/share/tomcat6/work/Catalina/localhost/manager/SESSIONS.ser (No such file or directory)
java.io.FileNotFoundException: /usr/share/tomcat6/work/Catalina/localhost/manager/SESSIONS.ser (No such file or directory)
SEVERE: IOException while saving persisted sessions: java.io.FileNotFoundException: /usr/share/tomcat6/work/Catalina/localhost/host-manager/SESSIONS.ser (No such file or directory)
java.io.FileNotFoundException: /usr/share/tomcat6/work/Catalina/localhost/host-manager/SESSIONS.ser (No such file or directory)
java.io.FileNotFoundException: /usr/share/tomcat6/work/Catalina/localhost/host-manager/SESSIONS.ser (No such file or directory)
java.io.FileNotFoundException: /usr/share/tomcat6/logs/manager.2010-06-18.log (Permission denied)
java.io.FileNotFoundException: /usr/share/tomcat6/logs/host-manager.2010-06-18.log (Permission denied)
SEVERE: The scratchDir you specified: /usr/share/tomcat6/work/Catalina/localhost/host-manager is unusable.
SEVERE: The scratchDir you specified: /usr/share/tomcat6/work/Catalina/localhost/manager is unusable.
阅读(4099) | 评论(0) | 转发(0) |