对于拥有多个IP地址的服务器,该属性指定哪个地址将被用于在指定端口上。默认情况下,该端口将被用于与服务器相关联的所有IP地址。
Controls when the socket used by the connector is bound. By default it is bound when the connector is initiated and unbound when the connector is destroyed. If set tofalse, the socket will be bound when the connector is started and unbound when it is stopped.
控制连接器绑定时套接字的使用。缺省情况,当连接器被启动时套接字被绑定和当连接器被销毁时套接字解除绑定。如果设置为false,连接器启动时套接字被绑定,连接器停止时套接字解除绑定。
The value is a comma separated list of MIME types for which HTTP compression may be used. The default value istext/html,text/xml,text/plain.
该值是一个被用于HTTP压缩的逗号分隔的MIME类型列表。默认值是text / html类型,为text / xml,text / plain。
TheConnectormay use HTTP/1.1 GZIP compression in an attempt to save server bandwidth. The acceptable values for the parameter is "off" (disable compression), "on" (allow compression, which causes text data to be compressed), "force" (forces compression in all cases), or a numerical integer value (which is equivalent to "on", but specifies the minimum amount of data before the output is compressed). If the content-length is not known and compression is set to "on" or more aggressive, the output will also be compressed. If not specified, this attribute is set to "off".
Note: There is a tradeoff between using compression (saving your bandwidth) and using the sendfile feature (saving your CPU cycles). If the connector supports the sendfile feature, e.g. the NIO connector, using sendfile will take precedence over compression. The symptoms will be that static files greater that 48 Kb will be sent uncompressed. You can turn off sendfile by settinguseSendfileattribute of the connector, as documented below, or change the sendfile usage threshold in the configuration of theDefaultServletin the defaultconf/web.xmlor in theweb.xmlof your web application.
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-66844-8.html
即使考不上大学念书不好的高中生写起日记来
因为此举把困扰欧洲的令其焦头烂额的叙利亚难民的安置问题