免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 972 | 回复: 0
打印 上一主题 下一主题

Install Tomcat 5.5 in Debian and Ubuntu [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-05-04 10:43 |只看该作者 |倒序浏览
Install Tomcat 5.5 in Debian and Ubuntu
Tomcat
,
Ubuntu
,
Debian

1. Necessary packages
apt-get install tomcat5.5 tomcat5.5-admin tomcat5.5-webapps
2. Directories
/usr/share/tomcat5.5/
/usr/share/tomcat5.5-webapps/
/etc/tomcat5.5
/var/lib/tomcat5.5
/var/log/tomcat5.5
3. Remember to export JAVA_HOME, for example (put in .bashrc)
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.11/
Launch tomcat5.5 using
sudo /etc/init.d/tomcat5.5 start
sudo /etc/init.d/tomcat5.5 restart
4. Problem: Can't start tomcat5.5 in ubuntu
Here is the
solution
:
$ cd /usr/share/tomcat5.5/logs
$ sudo mv catalina.out catalina.out.old
$ sudo touch catalina.out
$ sudo chown tomcat55:nogroup catalina.out
5. Configuration for using Tomcat Manager
(http://localhost:8180/manager/html) and Tomcat Administration
(http://localhost:8180/admin).
Edit /usr/share/tomcat5.5/conf/tomcat-users.xml and include the following:
6.
Problem of using Tomcat Administration in Debian
Solution:Add the following to the ‘/etc/tomcat5.5/policy.d/50user.policy’
// to activate the admin-interface
// http://lists.alioth.debian.org/pipermail/
// pkg-java-maintainers/2006-November/009749.html
grant codeBase “file:/usr/share/struts1.2/struts.jar” {
permission java.security.AllPermission;
};
7. Configure webapps
Recently when Debian upgrades
tomcat5.5, all webapps configurations are deleted, only admin and
manager apps remain in localhost configuration. This is a really
annoying behavior for Debian package update. However, Debian update did
notice that I changed tomcat-users.xml, 40webapps.policy and
50users.policy, so I had a chance to keep my old configuration.
For restoring all my webapps,
ln -s /usr/share/tomcat5.5-webapps/anywebapp.xml
/usr/share/tomcat5.5/conf/Catalina/localhost/anywebapp.xml
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/59758/showart_667960.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP