`

Apache vs Tomcat

 
阅读更多

本质区别
1)
apache支持静态页面;
tomcat支持动态页面,比如servlet等。
2)
apache是web(http)服务器,它是专门用于提供HTTP服务,以及相关配置的(例如虚拟主机、URL转发等等)
tomcat是应用(java)服务器,它只是一个servlet(jsp)容器,可以认为是apache的扩展,但是可以独立于apache运行。
3)
apache是一辆卡车,上面可以装一些东西如html等。但是不能装水,要装水必须要有容器(桶),而这个桶也可以不放在卡车上。

使用区别
tomcat 作为 jsp,servlet 容器,虽然有静态解析功能,但性能上与 apache 相比相差很远。
apache 可以运行一年不重启,稳定性非常好,而 tomcat 则不见得。

整合
一般使用apache+tomcat的话,apache只是作为一个转发,对jsp的处理是由tomcat来处理的。

整合的好处是
如果客户端请求的是静态页面,则只需要Apache服务器响应请求,apache 解析 html 等静态网页非常快,是经过无数测试证明的。
如果客户端请求动态页面,则是Tomcat服务器响应请求。
因为jsp是服务器端解释代码的,这样整合就可以减少Tomcat的服务开销。

其它
Tomcat是Apache组织在符合J2EE的JSP、Servlet标准下开发的一个JSP服务器


some official definitions:
What is the Apache HTTP Server?
    * is a powerful, flexible, HTTP/1.1 compliant web server
    * implements the latest protocols, including HTTP/1.1 (RFC2616)
    * is highly configurable and extensible with third-party modules
    * can be customised by writing 'modules' using the Apache module API
    * provides full source code and comes with an unrestrictive license
    * runs on Windows 2003/XP/2000/NT/9x, Netware 5.x and above, OS/2, and most versions of Unix, as well as several other operating systems

What is the Apache Tomcat?
    Apache Tomcat is the servlet container that is used in the official Reference Implementation for the Java Servlet and JavaServer Pages technologies. The Java Servlet and JavaServer Pages specifications are developed by Sun under the Java Community Process.
    Apache Tomcat is developed in an open and participatory environment and released under the Apache Software License.

分享到:
评论

相关推荐

    apache-tomcat-10.0.8.zip

    Apache Tomcat 软件是Jakarta Servlet、 Jakarta Server Pages、 Jakarta Expression Language、 Jakarta WebSocket、 Jakarta Annotations和 Jakarta Authentication 规范的开源实现 。 压缩包内容: apache-...

    开发工具 apache-tomcat-8.0.41-windows-x86

    开发工具 apache-tomcat-8.0.41-windows-x86开发工具 apache-tomcat-8.0.41-windows-x86开发工具 apache-tomcat-8.0.41-windows-x86开发工具 apache-tomcat-8.0.41-windows-x86开发工具 apache-tomcat-8.0.41-...

    apache-tomcat-9.0.45-windows-x64

    apache-tomcat-9.0.45-windows-x64apache-tomcat-9.0.45-windows-x64apache-tomcat-9.0.45-windows-x64apache-tomcat-9.0.45-windows-x64apache-tomcat-9.0.45-windows-x64apache-tomcat-9.0.45-windows-x64apache-...

    apache-tomcat-7.0.53

    apache-tomcat-7.0.53apache-tomcat-7.0.53apache-tomcat-7.0.53apache-tomcat-7.0.53

    apache-tomcat-9.0.7全系列(32bit,64bit,安装版,解压版,文档)

    2018-04-18 01:19 5,623,087 apache-tomcat-9.0.7-fulldocs.tar.gz 2018-04-18 01:19 11,168,080 apache-tomcat-9.0.7-windows-x64.zip 2018-04-18 01:19 10,830,323 apache-tomcat-9.0.7-windows-x86.zip 2018-04-...

    apache-tomcat-7.0.75.zip

    Tomcat是由Apache软件基金会下属的Jakarta项目开发的一个Servlet容器,按照Sun Microsystems提供的技术规范,实现了对Servlet和JavaServer Page(JSP)的支持,并提供了作为Web服务器的一些特有功能,如Tomcat管理和...

    apache-tomcat-9.0.6.zip

    apache-tomcat-9.0.6 apache-tomcat-9.0.6 apache-tomcat-9.0.6 apache-tomcat-9.0.6 apache-tomcat-9.0.6 apache-tomcat-9.0.6 apache-tomcat-9.0.6 apache-tomcat-9.0.6 apache-tomcat-9.0.6 apache-...

    apache-tomcat-6.0.35和apache-tomcat-6.0.35 src

    apache-tomcat-6.0.35和apache-tomcat-6.0.35 src,很全的!希望对大家的学习有帮助!

    apache-tomcat-8.5.28

    apache-tomcat-8.5.28 apache-tomcat-8.5.28 apache-tomcat-8.5.28

    apache-tomcat-6.0.53-src

    apache-tomcat-6.0.53-src,apache tomcat 6.0.53的源码。 压缩包文件清单: apache-tomcat-6.0.53-src.tar.gz apache-tomcat-6.0.53-src.tar.gz.asc apache-tomcat-6.0.53-src.tar.gz.md5 apache-tomcat-6.0.53-...

    apache-tomcat-9.0.41.zip

    Apache是web服务器,Tomcat是应用服务器,apache tomcat只是一个servlet容器,是Apache的扩展;Apache和Tomcat都可以做为独立的web服务器来运行,但是Apache不能解释java程序。我后面Javaweb程序设计文章里面在...

    Tomcat7下载(apache-tomcat-7.0.85)

    Tomcat7下载(apache-tomcat-7.0.85)Tomcat7下载(apache-tomcat-7.0.85)Tomcat7下载(apache-tomcat-7.0.85)Tomcat7下载(apache-tomcat-7.0.85)

    apache-tomcat-7.0.96

    apache-tomcat-7.0.96

    apache-tomcat-8.5.23

    apache-tomcat-8.5.23, apache-tomcat-8.5.23, apache-tomcat-8.5.23

    apache-tomcat-7.0.77下载

    apache-tomcat-7.0.77下载apache-tomcat-7.0.77下载apache-tomcat-7.0.77下载apache-tomcat-7.0.77下载apache-tomcat-7.0.77下载

    apache-tomcat-6.0.29.zip

    apache-tomcat-6.0.29.zip

    apache-tomcat-6.0.37

    apache-tomcat-6.0.37

    apache-tomcat-8.0.32

    apache-tomcat-8.0.32

    apache-tomcat-7.0.57

    Tomcat是由Apache软件基金会下属的Jakarta项目开发的一个Servlet容器,按照Sun Microsystems提供的技术规范,实现了对Servlet和JavaServer Page(JSP)的支持,并提供了作为Web服务器的一些特有功能,如Tomcat管理...

    apache-tomcat-9.0.13.zip

    apache-tomcat-9.0.13.zip

Global site tag (gtag.js) - Google Analytics