在RHEL / CentOS环境中,将tomcat放置在什么位置是最合适的

开发将由ITpipe理员pipe理的虚拟机 – 在CentOS系统上安装tomcat目录最合适或最普遍的地方在哪里?

默认目录也许是:

/usr/local 

我看到许多/ opt,相同的jdk,/ opt / java …

包维护者指定的位置。 Tomcat5&tomcat6软件包可以从JPackage yum版本库中获得 。 根据我的经验,使用操作系统的包维护机制(在CentOS的情况下为yum)可以减轻大量的操作和pipe理开销。

软件包放在哪里。

CentOS5中的“更新”回购有一个tomcat5 rpm。

它实际上只是jpackage的一个重新分发的副本。

 [jim@ssh ~]$ yum info tomcat5 Loaded plugins: fastestmirror addons | 951 B 00:00 base | 2.1 kB 00:00 epel | 3.4 kB 00:00 epel/primary_db | 3.3 MB 00:00 extras | 2.1 kB 00:00 updates | 1.9 kB 00:00 updates/primary_db | 560 kB 00:00 Available Packages Name : tomcat5 Arch : x86_64 Version : 5.5.23 Release : 0jpp.9.el5_5 Size : 361 k Repo : updates Summary : Apache Servlet/JSP Engine, RI for Servlet 2.4/JSP 2.0 API URL : http://tomcat.apache.org/ License : Apache Software License Description: Tomcat is the servlet container that is used in the official Reference : Implementation for the Java Servlet and JavaServer Pages technologies. : The Java Servlet and JavaServer Pages specifications are developed by : Sun under the Java Community Process. : : Tomcat is developed in an open and participatory environment and : released under the Apache Software License. Tomcat is intended to be : a collaboration of the best-of-breed developers from around the world. : We invite you to participate in this open development project. To : learn more about getting involved, click here.