The Server Component

原文链接:点击打开链接

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.
     一个或多个元素。
    通过server配置JNDI全局资源。


Special Features

    There are no special features associated with a Server.


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值