- 浏览: 68505 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (166)
- Apache (15)
- Linux (10)
- J2EE (8)
- 拾光 (3)
- Mybatis (10)
- JAVA (41)
- Spring (17)
- SpringSecurity (3)
- SpringMVC (9)
- 分布式 (6)
- JVM (5)
- hadoop (1)
- SSM框架 (2)
- Quartz (3)
- velocity (1)
- Oracle (3)
- Log4J (1)
- EhCache (0)
- OSGI (4)
- 讨论 (0)
- HTML (1)
- Spring Hessian (3)
- memcached (1)
- freemarker (3)
- OpenOffice (2)
- MYSQL (1)
- shiro (1)
- mac mysql (0)
- Redis (2)
- JavaScript (3)
- MyEclipse (2)
- atomikos (1)
- Maven (1)
- MAC Pro (2)
- Disruptor (2)
- 设计模式 (24)
- 正则表达式 (1)
- 创建型模式 (5)
- 结构性模式 (3)
最新评论
中文版的可以参照博客地址:
http://www.blogjava.net/baoyaer/articles/107278.html
下面是一些关于Tomcat Server.xml 详细说明,原文文档为英文,下面翻译为中文了.
1 Server
1.1 In the Tomcat world, a Server represents the whole container. Tomcat provides a default implementation of the Server interface., and this is rarely customized by users.
1.2 在tomcat的世界里,一个server代表整个容器.Tomcat提供了一个默认的org.apache.catalina接口的实现.用户很少修改这个默认的实现
2 Service
2.1 A Service is an intermediate component which lives inside a Server and ties one or more Connectors to exactly one Engine. The Service element is rarely customized by users, as the default implementation is simple and sufficient: Service interface.
2.2 一个Service是一个中间件,存在在一个Server的内部,将一个或者多个Connectors绑定到一个特定的Engine上.默认的实现已经足够用了.是org.apache.catalina.Service接口的一个实现.
A “Service” is a collection of one or more “Connectors” that share a single “Container”
一个Service是一个或者多个Connectors的集合,这些个Connectors共享一个容器。
3 Engine
3.1 An Engine represents request processing pipeline for a specific Service. As a Service may have multiple Connectors, the Engine received and processes all requests from these connectors, handing the response back to the appropriate connector for transmission to the client. The Engine interface may be implemented to supply custom Engines, though this is uncommon.
3.2 一个Engine代表一个特定的Service的请求处理的管道.因为一个Service可以有多个Connectors,Engine接收并且处理从这些Connectors过来的所有的请求.并且将结果送回合适的connector并发送给客户端.
3.3 可以实现org.apache.catalina.Interface Engine接口来提供定制的Engines,虽然一般不需要这样做.
3.4 Note that the Engine may be used for Tomcat server clustering via the jvmRoute parameter. Read the Clustering documentation for more information.
4 Host
4.1 A Host is an association of a network name, e.g. www.yourcompany.com, to the Tomcat server. An Engine may contain multiple hosts, and the Host element also supports network aliases such as yourcompany.com and abc.yourcompany.com. Users rarely create custom Hosts because the StandardHost implementation provides significant additional functionality.
4.2 一个Host将一个域名和tomcat联 系起来.一个Engine可以包含多个hosts,并且一个Host还支持网络别名(例如yourcompany.com 或者 abc.yourcompany.com).用户很少去实现一个org.apache.catalina.Interface Host接口,因为org.apache.catalina.core.StandardHost这个默认的实现已经提供了丰富的扩展功能了
5 Connector
5.1 A Connector handles communications with the client. There are multiple connectors available with Tomcat, all of which implement the Connector interface. These include the Coyote connector which is used for most HTTP traffic, especially when running Tomcat as a standalone server, and the JK2 connector which implements the AJP procotol used when connecting Tomcat to an Apache HTTPD server. Creating a customized connector is a significant effort.
5.2 一个Connector处理和客户端的通信.tomcat有多个connectors.这些个connectors都实现了Connector接口.
5.3 创建一个定制的connector是非常复杂的.
5.4 AJP是为Tomcat与HTTP服务器之间通信而定制的协议,能提供较高的通信速度和效率。在配置Tomcat与HTTP服务器集成中,读者可以不必关心AJP协议的细节。关于AJP的知识也可以参考网址:
5.5 Tomcat最主要的功能是提供Servlet/JSP容器,尽管它也可以作为独立的Java Web服务器,它在对静态资源(如HTML文件或图像文件)的处理速度,以及提供的Web服务器管理功能方面都不如其他专业的HTTP服务器,如IIS和Apache服务器。
5.6 因此在实际应用中,常常把Tomcat与其他HTTP服务器集成。对于不支持Servlet/JSP的HTTP服务器,可以通过Tomcat服务器来运行Servlet/JSP组件。
5.7 当Tomcat与其他HTTP服务器集成时,Tomcat服务器的工作模式通常为进程外的Servlet容器,Tomcat服务器与其他HTTP服务器之间通过专门的插件来通信。
5.8 Tomcat与HTTP服务器集成的原理:Tomcat服务器通过Connector连接器组件与客户程序建立连接,Connector组件负责接收客户 的请求,以及把Tomcat服务器的响应结果发送给客户。默认情况下,Tomcat在server.xml中配置了两种连接器:
l <Connector port=”8080″ protocol=”HTTP/1.1″ connectionTimeout=”20000″ redirectPort=”8443″ />
l <Connector port=”8009″ protocol=”AJP/1.3″ redirectPort=”8443″ />
5.9 第一个连接器监听8080端口,负责建立HTTP连接。在通过浏览器访问Tomcat服务器的Web应用时,使用的就是这个连接器。
5.10 第二个连接器监听8009端口,负责和其他的HTTP服务器建立连接。在把Tomcat与其他HTTP服务器集成时,就需要用到这个连接器。
5.11 Tomcat提供了专门的JK插件来负责Tomcat和HTTP服务器的通信。应该把JK插件安置在对方的HTTP服务器上。
5.12 对于不同的HTTP服务器,Tomcat提供了不同的JK插件的实现模块
l 与Windows下的Apache HTTP服务器集成:mod_jk_2.0.46.dll
l 与Linux(RedHet)下的Apache HTTP服务器集成:mod_jk.so-ap2.0.46-rh72..46-rh72
l 与IIS服务器集成:isapi_redirect.dll
5.13 AJP是为Tomcat与HTTP服务器之间通信而定制的协议,能提供较高的通信速度和效率。
5.14 关于AJP的知识也可以参考网址:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/common/AJPv13.html
5.15 如果两个Tomcat服务器都在同一台机器上运行,则至少应该对其中一个Tomcat服务器的以上3个端口号都进行修改。
6 Context
6.1 A Context represents a web application. A Host may contain multiple contexts, each with a unique path. The Context interface may be implemented to create custom Contexts, but this is rarely the case because the StandardContext provides significant additional functionality.
6.2 一个Context代表一个web应用程序。一个Host可以包含多个contexts。每一个有不同的访问地址。
6.3 可以实现Context接口来创建自己的Contexts。但很少这样用,因为StandardContext已经提供了丰富的额外的功能
http://www.blogjava.net/baoyaer/articles/107278.html
下面是一些关于Tomcat Server.xml 详细说明,原文文档为英文,下面翻译为中文了.
1 Server
1.1 In the Tomcat world, a Server represents the whole container. Tomcat provides a default implementation of the Server interface., and this is rarely customized by users.
1.2 在tomcat的世界里,一个server代表整个容器.Tomcat提供了一个默认的org.apache.catalina接口的实现.用户很少修改这个默认的实现
2 Service
2.1 A Service is an intermediate component which lives inside a Server and ties one or more Connectors to exactly one Engine. The Service element is rarely customized by users, as the default implementation is simple and sufficient: Service interface.
2.2 一个Service是一个中间件,存在在一个Server的内部,将一个或者多个Connectors绑定到一个特定的Engine上.默认的实现已经足够用了.是org.apache.catalina.Service接口的一个实现.
A “Service” is a collection of one or more “Connectors” that share a single “Container”
一个Service是一个或者多个Connectors的集合,这些个Connectors共享一个容器。
3 Engine
3.1 An Engine represents request processing pipeline for a specific Service. As a Service may have multiple Connectors, the Engine received and processes all requests from these connectors, handing the response back to the appropriate connector for transmission to the client. The Engine interface may be implemented to supply custom Engines, though this is uncommon.
3.2 一个Engine代表一个特定的Service的请求处理的管道.因为一个Service可以有多个Connectors,Engine接收并且处理从这些Connectors过来的所有的请求.并且将结果送回合适的connector并发送给客户端.
3.3 可以实现org.apache.catalina.Interface Engine接口来提供定制的Engines,虽然一般不需要这样做.
3.4 Note that the Engine may be used for Tomcat server clustering via the jvmRoute parameter. Read the Clustering documentation for more information.
4 Host
4.1 A Host is an association of a network name, e.g. www.yourcompany.com, to the Tomcat server. An Engine may contain multiple hosts, and the Host element also supports network aliases such as yourcompany.com and abc.yourcompany.com. Users rarely create custom Hosts because the StandardHost implementation provides significant additional functionality.
4.2 一个Host将一个域名和tomcat联 系起来.一个Engine可以包含多个hosts,并且一个Host还支持网络别名(例如yourcompany.com 或者 abc.yourcompany.com).用户很少去实现一个org.apache.catalina.Interface Host接口,因为org.apache.catalina.core.StandardHost这个默认的实现已经提供了丰富的扩展功能了
5 Connector
5.1 A Connector handles communications with the client. There are multiple connectors available with Tomcat, all of which implement the Connector interface. These include the Coyote connector which is used for most HTTP traffic, especially when running Tomcat as a standalone server, and the JK2 connector which implements the AJP procotol used when connecting Tomcat to an Apache HTTPD server. Creating a customized connector is a significant effort.
5.2 一个Connector处理和客户端的通信.tomcat有多个connectors.这些个connectors都实现了Connector接口.
5.3 创建一个定制的connector是非常复杂的.
5.4 AJP是为Tomcat与HTTP服务器之间通信而定制的协议,能提供较高的通信速度和效率。在配置Tomcat与HTTP服务器集成中,读者可以不必关心AJP协议的细节。关于AJP的知识也可以参考网址:
5.5 Tomcat最主要的功能是提供Servlet/JSP容器,尽管它也可以作为独立的Java Web服务器,它在对静态资源(如HTML文件或图像文件)的处理速度,以及提供的Web服务器管理功能方面都不如其他专业的HTTP服务器,如IIS和Apache服务器。
5.6 因此在实际应用中,常常把Tomcat与其他HTTP服务器集成。对于不支持Servlet/JSP的HTTP服务器,可以通过Tomcat服务器来运行Servlet/JSP组件。
5.7 当Tomcat与其他HTTP服务器集成时,Tomcat服务器的工作模式通常为进程外的Servlet容器,Tomcat服务器与其他HTTP服务器之间通过专门的插件来通信。
5.8 Tomcat与HTTP服务器集成的原理:Tomcat服务器通过Connector连接器组件与客户程序建立连接,Connector组件负责接收客户 的请求,以及把Tomcat服务器的响应结果发送给客户。默认情况下,Tomcat在server.xml中配置了两种连接器:
l <Connector port=”8080″ protocol=”HTTP/1.1″ connectionTimeout=”20000″ redirectPort=”8443″ />
l <Connector port=”8009″ protocol=”AJP/1.3″ redirectPort=”8443″ />
5.9 第一个连接器监听8080端口,负责建立HTTP连接。在通过浏览器访问Tomcat服务器的Web应用时,使用的就是这个连接器。
5.10 第二个连接器监听8009端口,负责和其他的HTTP服务器建立连接。在把Tomcat与其他HTTP服务器集成时,就需要用到这个连接器。
5.11 Tomcat提供了专门的JK插件来负责Tomcat和HTTP服务器的通信。应该把JK插件安置在对方的HTTP服务器上。
5.12 对于不同的HTTP服务器,Tomcat提供了不同的JK插件的实现模块
l 与Windows下的Apache HTTP服务器集成:mod_jk_2.0.46.dll
l 与Linux(RedHet)下的Apache HTTP服务器集成:mod_jk.so-ap2.0.46-rh72..46-rh72
l 与IIS服务器集成:isapi_redirect.dll
5.13 AJP是为Tomcat与HTTP服务器之间通信而定制的协议,能提供较高的通信速度和效率。
5.14 关于AJP的知识也可以参考网址:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/common/AJPv13.html
5.15 如果两个Tomcat服务器都在同一台机器上运行,则至少应该对其中一个Tomcat服务器的以上3个端口号都进行修改。
6 Context
6.1 A Context represents a web application. A Host may contain multiple contexts, each with a unique path. The Context interface may be implemented to create custom Contexts, but this is rarely the case because the StandardContext provides significant additional functionality.
6.2 一个Context代表一个web应用程序。一个Host可以包含多个contexts。每一个有不同的访问地址。
6.3 可以实现Context接口来创建自己的Contexts。但很少这样用,因为StandardContext已经提供了丰富的额外的功能
发表评论
-
如何查看apache加载了哪些模块
2016-12-16 20:28 480C:\Apache2.2\bin>httpd -M ... -
apache性能调优
2016-12-08 19:43 557性能测试简介 即压力测试,就是根据一定数量的VU(Virt ... -
Windows系统下Apache性能优化,提高并发
2016-12-08 19:32 860在Windows系统上面按以往Unix/linux的经验 ... -
Apache status 配置以及怎么查看apache-status
2016-12-08 19:34 692经常有人会为apache进 ... -
修改Linux下Apache的最大连接数
2016-12-08 19:34 433Apache的最大连接数,默认为256个。 修改apa ... -
Apache优化:修改最大并发连接数
2016-12-08 17:43 424Apache是一个跨平台的web服务器,由于其简单高效、稳 ... -
tomcat
2016-06-01 22:08 278假期的时候偶尔安装了 ... -
apache2.2配置
2015-04-25 00:34 3514.3.2 配置主配置文件 用vi或其它 ... -
rhle6.4+apache2.2
2014-12-15 14:13 436经过三天的配置,终于把集群环境搭建好了。不同版本的操作系统 ... -
Linux服务之httpd基本配置详解
2014-12-04 14:24 589一、基本介绍 1、版 ... -
Apache +Tomcat的负载均衡与集群配置
2014-12-03 23:46 521实验拓扑图: 一.搭配环境(1)。Tomcat的安装和配置T ... -
Linux 下修改Tomcat使用的JVM内存大小
2014-12-03 23:40 326我的服务器的配置: # ... -
apache-tomcat 在linxu上的部署
2014-12-03 23:39 353一、配置JDK [root@master ~]#chmod ... -
Apache http server linux 安装过程说明
2014-12-03 23:38 381PS:Apache http server 需要依赖 apr、 ...
相关推荐
tomcat server.xml配置说
Tomcat中server.xml的配置,因为很多刚入门的人可能会因为,错误修改或者删除而使Tomcat运行出现异常
tomcat server.xml配置;1:支持虚目录,如上传的文件放置到tomcat webapp置为的目录 2:配置https 3:配置多域名
Tomcat8.5服务器server.xml文件,误删的可以下载,Tomcat服务器server.xml基本都是一样的,只是版本不一样
Tomcat server.xml配置文件详解Tomcat server.xml配置文件详解Tomcat server.xml配置文件详解Tomcat server.xml配置文件详解Tomcat server.xml配置文件详解Tomcat server.xml配置文件详解Tomcat server.xml配置文件...
tomcatserver.xml配置详解.pdf
tomcat 中 server.xml配置详解,仅作参考
tomcat server.xml的典型配置,URIEncoding="utf-8
tomcat server.xml元素详细说明
tomcat_server.xml中各个属性的解释含义
为tomcat服务器配置https,tomcat需要设置的server.xml与web.xml配置。可以帮助小白为tomcat服务器配置https协议(域名)。
在工作中总结的Tomcat中web.xml,server.xml的详细配置文件的说明,还有例子。包含web.xml,server.xml配置文件中的所有配置,想详细了解web.xml,server.xml配置的朋友,还是很有帮助的。 在总结的过程中,查阅了大量...
tomcat配置文件web.xml与server.xml解析
说明:以下文字均以tomcat5.0.30为例进行。 1,配置tomcat服务器访问端口,只需配置Connector的port端口即可。Tomcat默认为8080,现修改port参数值为80。
感觉比tomcat api要好理解点,在网上找的,与大家分享一下
tomcat的server.xml配置,api和web分离。
tomcat配置讲解(server.xml)
min tomcat 7 server.xml
Tomcat配置文件server.xml说明.doc
由于在CentOS中安装vmware server 2.0.1后,vmware自带的tomcat默认配置会占用8080端口,导致自己安装的tomcat无法正常使用,因此修改了server.xml。本以为每次只要手工修改即可,但由于第二次修改碰到问题,改成...