The Server Component

来源:互联网 发布:八卦八卦我牵挂 知乎 编辑:程序博客网 时间:2024/06/06 19:42

原文链接:点击打开链接

Apache Tomcat Configuration Reference


The Server Component


Introduction:

    A Server element represents the entire Catalina servlet container. Therefore, it must be the single outermost element in the conf/server.xml configuration file. Its attributes represent the characteristics of the servlet container as a whole.

    一个server元素表示整个Catalina servelet容器。因此,它在conf/server.xml配置文件中必须是最外层的元素。它的属性代表着servlet容器所有特征。

Attributes:

    Common Attributes

        All implementations of Server support the following attributes:

        所有的server实现都支持以下属性:

className:Java class name of the implementation to use. This class must implement the org.apache.catalina.Server interface. If no class name is specified, the standard implementation will be used.

    表示实现了Java类的类名。这个class必须实现org.apache.catalina.Server接口。如果没有显式指定的类名,默认使用标准的实现类。

port:The TCP/IP port number on which this server waits for a shutdown command. This connection must be initiated from the same server computer that is running this instance of Tomcat. Set to -1 to disable the shutdown port.

Note: Disabling the shutdown port works well when Tomcat is started using Apache Commons Daemon (running as a service on Windows or with jsvc on un*xes). It cannot be used when running Tomcat with the standard shell scripts though, as it will prevent shutdown.bat|.sh and catalina.bat|.sh from stopping it gracefully.

    TCP/IP端口号被这个服务器用来接收关闭命令。这个连接必须的开始必须来自相同的运行着Tomcat实例的服务器。设置为-1可以关闭这个端口。

注意:当Tomcat正在使用 Apache Commons Daemon时关闭端口失效可以是服务器工作的更好。当使用标准的shell脚本它不能使用,因为它将阻止.bat|.sh a和 catalina.bat|.sh的关闭命令。

shutdown:The command string that must be received via a TCP/IP connection to the specified port number, in order to shut down Tomcat.

    这个命令必须是通过TCP/IP连接到特定端口才能被接收,用于关闭Tomcat。

Standard Implemments

    The standard implementation of Server is org.apache.catalina.core.StandardServer. It supports the following additional attributes (in addition to the common attributes listed above):

    Server的这个标准实现是org.apache.catalina.core.StandardServer。它支持以下的额外属性。

AttributeDescription

I don't know why there isn't some sentences.


Nested Components

The following components may be nested inside a Server element:

  • Service - One or more service element.
    一个或多个元素。
  • GlobalNamingResources - Configure the JNDI global resources for the server.
    通过server配置JNDI全局资源。


Special Features

    There are no special features associated with a Server.


0 0
原创粉丝点击