RHEL/Centos環境でTomcatを配置する最も適切な場所はどこですか?

RHEL/Centos環境でTomcatを配置する最も適切な場所はどこですか?

IT 管理者が管理する仮想マシンを開発しています - CentOS システムに tomcat ディレクトリをインストールするのに最も適切または一般的に受け入れられている場所はどこですか?

答え1

デフォルトのディレクトリは次のようになります:

/usr/local

答え2

/opt にたくさんありましたが、jdk、/opt/java でも同様でした...

答え3

パッケージ管理者が指定した場所。Tomcat5およびtomcat6パッケージは以下から入手できます。JPackage yum リポジトリ私の経験では、オペレーティング システムのパッケージ メンテナンス メカニズム (CentOS の場合は yum) を使用すると、煩雑さと管理上のオーバーヘッドが大幅に軽減されます。

答え4

パッケージに記載されている場所。

CentOS5 の「updates」リポジトリから 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.

関連情報