Apache http server 和 Apache tomcat 的區別

簡單的理解:

Apache http server 是一種 web server 。web server 是可以處理的http請求的服務。
Apache tomcat 是一種應用程序服務器,實現了servlet和jsp,同時也包含了web server 的功能。


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 2000, Netware 5.x and above, OS/2, and most versions of Unix, as well as several other operating systems
is actively being developed
encourages user feedback through new ideas, bug reports and patches
implements many frequently requested features, including:

以上內容摘自apache官網 http://wiki.apache.org/httpd/FAQ#What_is_Apache.3F
其中指出 Apache HTTP is web server.

web server WEB服務器

以下內容摘自百度百科
Web Server中文名稱叫網頁服務器或web服務器。WEB服務器也稱爲WWW(WORLD WIDE WEB)服務器,主要功能是提供網上信息瀏覽服務
主要的web server 產品 kangle nginx apache
警告:現在大多數應用程序服務器也包含了Web服務器,這就意味着可以把Web服務器當作是應用程序服務器的一個子集(subset)。雖然應用程序服務器包含了Web服務器的功能,但是開發者很少把應用程序服務器部署(deploy)成這種功能(capacity)(譯者注:這種功能是指既有應用程序服務器的功能又有Web服務器的功能)。相反,如果需要,他們通常會把Web服務器獨立配置,和應用程序服務器一前一後。這種功能的分離有助於提高性能(簡單的Web請求(request)就不會影響應用程序服務器了),分開配置(專門的Web服務器,集羣(clustering)等等),而且給最佳產品的選取留有餘地。


Apache tomcat:

tomcat 是一個應用程序服務器,實現了the Java Servlet and JavaServer Pages technologies。
Apache Tomcat? is an open source software implementation of the Java Servlet and JavaServer Pages technologies. The Java Servlet and JavaServer Pages specifications are developed under the Java Community Process.


區別:

http://baike.baidu.com/link?url=TjfY2ZlN38CZ-NptBOaWqEZ18pjbYAr2nvdu_KKvWAeRmZK0UxAqdgnvpW07-A9YN-6LrJKy5Q1tbiJvufSmbq
Apache是web服務器,Tomcat是應用(java)服務器,它只是一個servlet容器,是Apache的擴展。 Apache和Tomcat都可以做爲獨立的web服務器來運行,但是Apache不能解釋java程序(jsp,servlet)。
兩者都是一種容器,只不過發佈的東西不同:Apache是html容器,功能像IIS一樣;Tomcat是jsp/servlet容器,用於發佈jsp及java的,類似的有IBM的websphere、BEA的Weblogic,sun的JRun等等。
打個比方:Apache是一輛卡車,上面可以裝一些東西如html等。但是不能裝水,要裝水必須要有容器(桶),Tomcat就是一個桶(裝像Java這樣的水),而這個桶也可以不放在卡車上。
Apache是世界使用排名第一的Web服務器。它可以運行在幾乎所有廣泛使用的計算機平臺上。
Apache 源於 NCSAhttpd服務器,經過多次修改,成爲世界上最流行的Web服務器軟件之一。Apache取自“a patchy server”的讀音,意思是充滿補丁的服務器,因爲它是自由軟件,所以不斷有人來爲它開發新的功能、新的特性、修改原來的缺陷。Apache的特點是簡單、速度快、性能穩定,並可做代理服務器來使用。Apache對Linux的支持相當完美。

發佈了33 篇原創文章 · 獲贊 3 · 訪問量 3萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章