Qhov txawv ntawm Apache thiab Tomcat Server

Qhov txawv ntawm Apache thiab Tomcat Server
Qhov txawv ntawm Apache thiab Tomcat Server

Video: Qhov txawv ntawm Apache thiab Tomcat Server

Video: Qhov txawv ntawm Apache thiab Tomcat Server
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Hlis ntuj nqeg
Anonim

Apache vs Tomcat Server

Apache Server thiab Tomcat Server yog ob ntawm cov khoom tsim los ntawm Apache Software Foundation. Apache yog HTTP web server, thaum Apache Tomcat yog Servlet ntim ib puag ncig. Txawm li cas los xij, Tomcat server los nrog nws tus kheej HTTP server tivthaiv. Apache thiab Tomcat feem ntau tsis meej pem ua tib lub server vim qhov zoo sib xws hauv lawv cov npe. Txawm hais tias lawv tau tsim los ntawm tib lub koom haum, lawv tsis tau muab khi ua ke. Feem ntau, ob yam khoom no tau siv ua ke hauv kev lag luam rau kev pabcuam lub vev xaib.

Tomcat Server yog dab tsi?

Tomcat (tseem hu ua Apache Tomcat lossis Jakarta Tomcat) muab "java ntshiab" HTTP web server ib puag ncig uas tuaj yeem siv los khiav Java code. Nws yog lub thawv Servlet tsim los ntawm Apache Software Foundation, uas yog muab los ua cov khoom qhib. Sun Microsystems's Java Servlet thiab JSP (Java Server Nplooj) cov lus qhia tshwj xeeb yog siv los ntawm Tomcat. Apache Tomcat tuaj yeem teeb tsa siv XML cov ntaub ntawv teeb tsa (txawm tias cov cuab yeej rau kev teeb tsa thiab kev tswj hwm suav nrog cov server). Tomcat 7.0 yog qhov tseeb ruaj khov version ntawm Tomcat, uas qhia ntau yam tshiab ntawm nws cov ntawv dhau los.

Apache pib ua haujlwm ntawm Apache 7.0 thaum ntxov Lub Ib Hlis, 2009. Tab sis, nws tau tshaj tawm ruaj khov tom qab 2 xyoos (Lub Ib Hlis, 2011). Tomcat 7.0.6 yog thawj Tomcat 7 ruaj khov tso tawm. Tomcat 7.0 tau tsim los ntawm kev txhim kho tau qhia hauv cov ntawv ua ntej thiab siv Servlet 3.0 API, JSP 2.2 thiab EL 2.2 specifications. Kev txhim kho uas muaj los ntawm Tomcat 7.0 yog kev tshawb nrhiav / tiv thaiv kev nco txog hauv lub vev xaib, txhim kho kev ruaj ntseg rau Tus Thawj Saib Xyuas / Tus Thawj Tswj Hwm, CSRF (Cross-Site Request Forgery) kev tiv thaiv, muaj peev xwm suav nrog cov ntsiab lus sab nraud hauv daim ntawv thov ncaj qha thiab ntxuav cov cai (xws li refactoring ntawm connectors thiab lifecycles).

Apache Server yog dab tsi?

Apache (los yog Apache Server) yog HTTP web server tsim los ntawm Apache Software Foundation. Apache Server tau hais tias tau ua lub luag haujlwm tseem ceeb hauv kev nthuav dav sai ntawm World Wide Web. Nws twb muaj ntau dua 100 lab lub vev xaib siv nws. Nws suav hais tias yog HTTP server nrov tshaj plaws. Tam sim no, nws ua haujlwm 2/3 ntawm txhua lub vev xaib hauv ntiaj teb, suav nrog 2/3 ntawm ntau lab lub vev xaib uas muaj neeg coob tshaj plaws. Apache yog tus neeg rau zaub mov cross-platform, uas feem ntau txhawb Unix zoo li cov tshuab xws li UNIX, FreeBSD, Linux thiab Solaris. Nws tseem tuaj yeem khiav ntawm Mac OS X thiab Microsoft Windows ib yam. Robert McCool yog tus sau thawj ntawm Apache, thiab nws qhov kev tso tawm thawj zaug yog xyoo 1995. Nws qhov kev tso tawm ruaj khov tam sim no yog 2.2.19, uas tau tso tawm rau 22 Tsib Hlis, 2011. Apache yog qhov qhib software sau ua lus C thiab muaj ntawv tso cai raws li Apache daim ntawv tso cai 2.0..

Apache lub luag haujlwm tseem ceeb tau txuas ntxiv siv ntau yam kev ua haujlwm raws li kev suav sau ua ke. Apache txhawb Perl, Python thiab PHP thiab ntau yam kev lees paub cov qauv suav nrog mod_access, mod_auth thiab mod_auth_digest. Apache web server kuj txhawb SSL (Secure Sockets Layer) thiab TLS (Transport Layer Security). Tsis tas li ntawd, lub npe hu ua module, lub cav sau dua tshiab, lub kaw lus kaw lus thiab lub lim dej yog muab los ntawm Apache. AWStats lossis W3Perl tuaj yeem siv los txheeb xyuas Apache cav. Mod_gzip yog txoj kev compression muab los ntawm Apache server. Qhib qhov chaw nkag mus tshawb pom / tiv thaiv cav, ModSecurity kuj suav nrog hauv Apache.

Qhov txawv ntawm Apache thiab Tomcat Server yog dab tsi?

– Apache server yog HTTP web server, thaum Apache Tomcat server feem ntau yog daim ntawv thov server uas siv los khiav Java code.

– Apache sau hauv C, thaum Tomcat sau hauv Java.

– Apache yog siv rau kev pabcuam cov ntsiab lus zoo li qub, thaum Tomcat siv feem ntau rau cov ntsiab lus zoo xws li Java Servlets thiab JSP cov ntaub ntawv.

– Feem ntau, Apache pom tau nrawm dua Tomcat thaum nws los ua haujlwm rau cov ntsiab lus zoo li qub.

– Apache kuj tseem tsim tau thiab muaj zog dua Tomcat.

– Txawm li cas los xij, yog tias koj tab tom ua haujlwm cov ntsiab lus dynamic ntawm koj qhov chaw, Tomcat tsuas yog kev xaiv tawm ntawm ob lub servers no, vim Apache tsuas tuaj yeem pab cov ntsiab lus zoo li HTML nplooj ntawv.

Pom zoo: