linux – 为什么tomcat6在/ var / lib /和/usr/share /中都有文件夹?

我是 Linux新手,我不明白为什么apt-get install tomcat6导致两个tomcat6文件夹,一个在/ var / lib /中,另一个在/usr/share /中.我确信它有充分的理由,但它让我几个小时的困惑,没有任何工作.

这是怎么回事?

解决方法

Tomcat提供一种机制,您可以在其中运行多个实例,这些实例都使用一些常用配置元素.您将使用环境变量CATALINA_HOME与CATALINA_BASE配置tomcat(或相应的属性).见 this article for an explanation.

“The first properties (catalina.home)
points to the location of the common
information,while the other property
(catalina.base) points to the
directory where all the instance
specific information are held.”

因此,default tomcat6 package in Ubuntu具有对运行单个实例的人以及运行多个实例的人友好的配置.

你可以看到tomcat6 package includes都:

> /usr/share / tomcat6
> / var / lib / tomcat6

如果您只运行一个tomcat实例,那么您可能希望使用/ var / lib / tomcat6位置.

如果您(或其他读者)偶然在寻找脚本来自动在基于debian的发行版上安装Tomcat的多个实例,this one has worked well对我来说稍作修改.

相关文章

insmod和modprobe加-f参数导致Invalid module format错误 这...
将ArchLinux安装到U盘 几个月前入门Arch的时候上网搜了不少安...
1、安装Apache。 1)执行如下命令,安装Apache服务及其扩展包...
一、先说一下用ansible批量采集机器信息的实现办法: 1、先把...
安装配置 1. 安装vsftpd 检查是否安装了vsftpd # rpm -qa | ...
如何抑制stable_secret读取关键的“net.ipv6.conf.all.stabl...