开发由 IT 管理员管理的虚拟机 - 在 CentOS 系统上安装 tomcat 目录最合适或最普遍接受的位置是哪里?
答案1
默认目录可能是:
/usr/local
答案2
我在 /opt 上看到很多,jdk、/opt/java 也一样......
答案3
软件包维护者指定的位置。Tomcat5 和 tomcat6 软件包可从JPackage yum 存储库根据我的经验,使用操作系统的软件包维护机制(在 CentOS 中是 yum)可以减少许多繁琐的工作和管理开销。
答案4
包裹放在哪里。
CentOS5 中的“更新” repo 中有一个可用的 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.