原文链接:点击打开链接
Apache Tomcat Configuration Reference
The Server Component
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接口。如果没有显式指定的类名,默认使用标准的实现类。
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 port:
-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):
Attribute | Description |
---|
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.
Special Features
There are no special features associated with a Server.