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 中的「更新」儲存庫提供了 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.

相關內容