Tomcat vs Apache:您鐘情于哪一款 本文探討了 Apache 與 Apache Tomcat 之間的區(qū)別,,幫助開發(fā)者選擇更加適宜的Web服務器。 當你選擇使用哪種Web服務器時,,或許會因它們的差異性和技術(shù)細節(jié)等方面而困擾,。如何區(qū)分Web服務器以及如何為你的項目挑選一款最佳的Web服務器,或許對你來說這是一個很難的決定,。鑒于Apache目前最流行的一款Web服務器,,本文將探討Apache與Apache Tomcat兩者之間的區(qū)別,以滿足不同開發(fā)者的需求,。 Apache Web服務器通常比稱之為“Apache”或者“httpd”,,1995年由Robert Mc Cool和他的團隊開發(fā),由Apache軟件基金會提供支持與維護,。Apache是目前最流行的Web應用服務器,,擁有超過一億的網(wǎng)站用戶,占據(jù)互聯(lián)網(wǎng)應用服務器63%的份額,以及全球最繁忙網(wǎng)站中有66%采用Apache的(比方說,,維基百科網(wǎng)站服務器就是使用Apache),。 Apache Apache獲得了巨大的成就,它是一項完全開源的項目,,其成功的大部分原因應歸功于免費,、穩(wěn)定且性能卓越。Apache Web服務器是一個用C語言實現(xiàn)的HTTP Web服務器,,支持各種特性和模塊從而來擴展核心功能,。 Apache的優(yōu)越特性:
Apache最大的缺點是不支持Java Servlets或JavaServer Pages(JSP),無法在Apache Web服務器上運行,,Tomcat由此而誕生,。 Apache Tomcat Apache Tomcat又被稱之為“Tomcat”是一款開源的Web服務器,Jakarta項目中的一個核心項目,,1999年被開發(fā)而成,,支持Servlet和JSP,由Apache軟件基金會提供支持與維護,。 Tomcat是靠Java實現(xiàn)的,,支持Java Servlets和JavaServer Pages(JSP),由Oracle公司指定的,,因JSPs而著稱,。 Tomcat部分是Apache服務器的擴展,但它是獨立運行的,,所以當Apache Tomcat運行tomcat時,,它實際上是作為一個與Apache獨立的進程單獨運行的。 提供Tomcat獨立運行的幾個不同的安裝方法:
Tomcat的優(yōu)越特性:
如果你對它們都感興趣的話,這里還提供了 Apache training 和 Tomcattraining 學習課程,。 對于用戶來說,,如果你需要運行Java Servlets或者JavaServer pages(JSP),Tomcat絕對是你最好的選擇,;但如果你需要運行大量的靜態(tài)頁面(HTML)或者其他的一些動態(tài)技術(shù)(PHP,、Perl),你可以選擇Apache或者Tomcat的“in- process”或者“out-of-process”模式,。 無論是哪一種,,你都無須為為它支付任何費用,不是嗎,?======================================================================================
Tomcat vs. Apache: Why One Over the Other When determining which type of web server to use, the differences and technical details can be daunting. It can be a difficult task to compare web servers and make the decision on which is best for you and your project. Since Apache is currently the most popular web server, this article will discuss the differences between the Apache Web Server and Apache Tomcat, which are very different and fulfill different needs. The Apache Web Server, often just called “Apache” or “httpd”, was developed in 1995 by Robert McCool and continuous development as well as maintenance is provided by the Apache Software Foundation. Known as the most popular web server, it has surpassed over 100 million websites and serves 63% of all websites as well as 66% of the million busiest. This is a huge accomplishment for a server that is an entirely an open-source project but the fact that it is free is one of the biggest reason for such a huge following. Apache The Apache Web Server is a C language implementation of an HTTP web server and can run a variety of features and modules to extend the core functionality. Here are some points in favor of the Apache Web Server over Tomcat:
The big downside for Apache is the lack of functionality for Java Servlets or JavaServer Pages, which cannot be run with Apache’s web server. Tomcat was created to address this problem. Apache Tomcat Apache Tomcat, otherwise known as “Tomcat” is an open-source web server that started as a servlet reference in 1999 and is developed and maintained by the Apache Software Foundation. It is a Java implementation that runs Java Servlets and JavaServer Pages, known as JSPs, as specified from Oracle. Often used together, Tomcat can be a valuable addition to your Apache Web Server installation; however, Tomcat can also stand on its own as a web server without Apache. There are different installation methods and way that Tomcat can run to either supplement your Apache Web Server or run on its own:
Here are some points in favor of Tomcat over Apache httpd Web Server:
If you are interested in learning beyond the overview of each server, we provide both Apache trainingand Tomcat training courses as part of LearnComputer’s regular curriculum. For users that need to run Java Servlets or JavaServer pages, Tomcat is definitely the best implementation for you. However, if you are running a lot of static pages or need other dynamic techniques, you may want to stick with the Apache Web Server and run Tomcat either in- or out-of-process to get the Java support that you need. Either way, you will know that you are running one of the best web servers available without having to pay unnecessary cost for it. 翻譯原文: Tomcat vs Apache:您鐘情于哪一款(中文) |
|