In Linux system, Apache and Tomcat are both mainstream Web servers. So, is there any relationship between these two Linux servers? What is the difference between the two? ? Let's take a look.
Apache is the world's number one use of Web server software. It runs on almost all widely used computer platforms and is widely used as one of the most popular web server software because of its cross-platform and security. In the Apache Foundation, Apache Server will always be given the greatest support. After all, the eldest son is the closest, and Apache's open source server software Tomcat is also worthy of attention. After all, Tomcat is an open source free product, and users will give the greatest support. But often when using these servers such as Apache and Tomcat, you still don't know what is the relationship between them. When you use Tomcat, Apache always appears, always confused. Who is the master and who is the one, so deliberately online I have reviewed some of the information in this area and summarized it.
Parsing one:
Apache supports static pages, Tomcat supports dynamic, such as Servlet, etc.
Generally, when using Apache+Tomcat, Apache is only used as a forwarding, JSP The processing is handled by Tomcat.
Apche can support PHPcgiperl, but to use Java, you need Tomcat to support the Apache backend, and forward Java requests from Apache to Tomcat.
Apache is a web server. Tomcat is an application (Java) server. It is just a servlet (JSP is also translated into a servlet) container. It can be considered an extension of Apache, but it can be run independently of Apache.
These two can be compared with the following:
1, both are developed by the Apache organization
2, both have the function of HTTP service < Br>
3, both are free
Differences:
Apache is specifically used to provide HTTP services, and related configuration (such as virtual host, URL forwarding, etc. Etc.)
Tomcat is a JSP server developed by the Apache organization under the Java EE-compliant JSP and Servlet standards.
Analysis 2:
Apache is a web server environment program that enables it to be used as a web server, but only supports static web pages such as (ASP, PHP, CGI, JSP) and other dynamic web pages. Not at all.
If you want to run JSP in the Apache environment, you need an interpreter to execute the JSP page. This JSP interpreter is Tomcat. Why is it JDK? Because JSP needs to connect to the database, it needs jdk to provide the connection to the database, so to run the JSP web server platform you need Apache+Tomcat+JDK.
The benefits of integration are:
1. If the client requests a static page, then only the Apache server needs to respond to the request.
2. If the client requests a dynamic page, the Tomcat server responds to the request.
3, because JSP is the server-side interpretation code, this integration can reduce the service overhead of Tomcat.
C is a structured language, as Tan’s father said: its focus is on algorithms and data structures. The primary consideration of the design of a C program is how to perform an operation (or implementation process (transaction) control) on an input (or an environmental condition) through a process. For C++, the primary consideration is how to construct an object model. This model can fit the problem domain corresponding to it, so that the output or implementation process (transaction) control can be obtained by obtaining the state information of the object.
Analysis 3:
Apache: Focus on HTTP Server
Tomcat: Focus on the Servlet engine. If running in Standalone mode, it is functionally equivalent to Apache and supports JSP. But it is not ideal for static web pages;
Apache is a web server, Tomcat is an application (Java) server, it is just a Servlet (JSP is also translated into a Servlet) container, can be considered as an extension of Apache, but can be independent Run on Apache.
In other words, Apache is a truck that can hold things like Html. However, it is not possible to install water. To contain water, there must be a container (barrel), and the barrel may not be placed on the truck.
The above is the introduction of the differences between Apache and Tomcat in the Linux system. From this we can see that Tomcat is a derivative of Apache, but Tomcat has gradually become a popular product.
If you find that there is not enough free space in the /home directory on the Linux
Linux users sometimes encounter centos startup errors during use. The error is as f
The nl command in Linux is similar to the cat command, but the nl command will play
In the Linux system operation, the content of the text will inevitably appear dupli
Methods for Enhancing Linux System Security
Linux system hardware routing forwarding principle
Linux installation and configuration JDK and Eclipse steps
Linux uses PXE to install virtual machines
How Ubuntu builds virtual network card
Handling of the Segmentation fault error in Linux programming
How to choose qcow2 and raw image format for Linux system
How to configure dynamic IP service for Linux system
Linux system uses FTP method by command
How to test the read and write speed of Linux disk
How to use the game controller in the win7 system
Sogou wallpaper to add a small trick of the grid
Win8 mobile phone data cable connected to the computer did not respond how to solve?
How to modify the Win8 mouse properties?
How to delete input method win10 win10 delete Microsoft Pinyin input method graphic tutorial
Build server-side security protection
Win7 file is isolated by 360 security software recovery method
FIFA online3 summer summer activities in the second quarter online Activity address reward upgrade
Put win8 IE10 on the desktop method (non-fast key type)
Win7 can't open the webpage and prompts the solution to the offline problem.