Apache Tomcat 6.0 Directories and Files

来源:互联网 发布:淘宝延长收货怎么用 编辑:程序博客网 时间:2024/05/31 19:54

Apache Tomcat 6.0


Introduction


Directories and Files

    Throughout the docs, you'll notice there are numerous references to $CATALINA_HOME. This represents the root of your Tomcat installation. When we say, "This information can be found in your $CATALINA_HOME/README.txt file" we mean to look at the README.txt file at the root of your Tomcat install. Optionally, Tomcat may be configured for multiple instances by defining $CATALINA_BASE for each instance. If multiple instances are not configured, $CATALINA_BASE is the same as $CATALINA_HOME.

These are some of the key tomcat directories:

  • /bin - Startup, shutdown, and other scripts. The *.sh files (for Unix systems) are functional duplicates of the*.bat files (for Windows systems). Since the Win32 command-line lacks certain functionality, there are some additional files in here.
  • /conf - Configuration files and related DTDs. The most important file in here is server.xml. It is the main configuration file for the container.
  • /logs - Log files are here by default.
  • /webapps - This is where your webapps go.
    通过这篇文档,你将注意到这里有大量的引用指向$CATALINA_HOME的根目录,它表示你安装catalina的跟目录。当我们说“这个信息可以在你的$CATALINA_HOME/README.txt文件中找到”,意思是在你安装Tomcat安装目录中查找README.TXT文件。Tomcat可以童工定义$CATALINA_BASE来为多个实例进行配置。如果对个实例不进行配置,则$CATALINA_BASE$CATALINA_HOME作用一样。
  以下是tomcat的部分目录:
    /bin — 启动、关闭和其他一些脚本文件。*.sh文件(Unix系统下)和*.bat文件(windows系统下)的功能是重复的。因为Win32命令行缺少特定的功能,这里还有其他的一些文件。
    /conf — 配置文件和相关联的DTD文件。这里最重要的文件就是server.xml,它是容器的主要配置文件。
    /logs — 默认的日志文件都在这里。
    /webapps — 这是你的web项目所在。



0 0