tomcat在ubuntu上的默认目录

Tomcat 6 Directory Locations on Ubuntu Server 11.04

I started playing around with Ubuntu Server on a locally created virtualbox virtual machine today and used aptitude to install tomcat 6.0.28.  Being used to the implementation one downloads directly from the Apache Software Foundation, quite a few minutes were spent figuring out where files were placed.  Below are the locations for folks spending time searching the web to find out things like where the webapps directory is on Ubuntu Server 11.04 or where the tomcat6 access logs might be located.

Default Installation Paths

Logs:  /var/log/tomcat6

Binaries and Libs:  /usr/share/tomcat6 (although libs are symlinked to /usr/share/java and some jars inside the bin directory get symlinked to /usr/share/java as well)

System start/stop/status script: /etc/init.d/tomcat6.

CATALINA_HOME:  /usr/share/tomcat6

CATALINA_BASE:  /var/lib/tomcat6

The default webapps directory location is under /var/lib/tomcat6/

Configuration files are under /etc/tomcat6/

I haven't given it a try yet but I prefer storing java options inside a setenv.sh script but the /etc/init.d/tomcat6 doesn't have any reference to setenv.sh like /usr/share/tomcat6/bin/catalina.sh does, so it will be interesting to see whether enabling jmx via setenv.sh will work or if I'll need to modify /etc/init.d/tomcat6.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值