In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article is to share with you about the role of apache. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.
Summary of the role of apache:
One:
Apache supports static pages, while tomcat supports dynamic ones, such as servlet, etc. Generally, if apache+tomcat is used, apache is only used as a forwarding, and the processing of jsp is handled by tomcat.
Apache can support php/cgi/perl, but to use java, you need tomcat in the apache background to forward the java request from apache to tomcat for processing.
Apache is the web server, Tomcat is the java server, it is just a servlet (jsp is also translated into servlet) container, can be thought of as an extension of apache, but can be run independently of apache.
The two can be compared in the following ways:
1. Both are developed by the apache organization
2. Both of them have the function of HTTP service
3. Both are free
Differences:
Apache is dedicated to providing HTTP services, as well as related configurations (such as virtual hosts, URL forwarding, and so on). Tomcat is a JSP server developed by Apache in accordance with J2EE's JSP and Servlet standards.
Two:
APACHE is a web server environment program, enable it can be used as a web server, but only support static web pages such as (asp,php,cgi,jsp) and other * * pages
If you want to run jsp in an APACHE environment, you need an interpreter to execute jsp pages, and the jsp interpreter is TOMCAT, so why JDK? Because jsp needs to connect to the database, it needs jdk to provide the driver to connect to the database, so APACHE+TOMCAT+JDK is needed to run jsp's web server platform.
The benefits of integration are:
If the client requests a static page, only the Apache server is required to respond to the request
If the client requests a dynamic page, the Tomcat server responds to the request
Because jsp interprets code on the server side, integration can reduce the service overhead of Tomcat
Three:
Apache: focus on http server
Tomcat: focuses on servlet engine. If it runs in standalone mode, it is functionally equivalent to apache and supports JSP, but it is not ideal for static web pages.
Apache is the web server, tomcat is the java server, it is just a servlet (jsp is also translated into servlet) container, can be thought of as an extension of apache, but can be run independently of apache.
In other words, apache is a truck that can be loaded with things such as html, etc. But water can not be filled, there must be a container (bucket) to hold water, and this bucket can not be put on the truck.
Thank you for reading! About the role of apache to share here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.