Home  >  Article  >  Operation and Maintenance  >  What is the difference between Apache server and tomcat server?

What is the difference between Apache server and tomcat server?

(*-*)浩
(*-*)浩Original
2019-12-16 16:41:042241browse

What is the difference between Apache server and tomcat server?

Apache and Tomcat are both projects developed by the Apache open source organization to handle HTTP services. Both are free and can be used as independent

Web server is running. Apache is a web server and Tomcat is a Java application server. (Recommended Learning: Apache server )

Apache server only handle static html

Tomcat server Static HTML dynamic jsp service jsp service Can handle it all.

Generally, the Apache server and the tomcat server are paired together to use

The Apache server is responsible for processing all static pages/pictures and other information.

Tomcat only handles the dynamic part.

Apache: is implemented in C language and is specially used to provide HTTP services.

Features: Simple, fast, stable performance, configurable (proxy)

1. Mainly used to parse static text, with high concurrency performance, focusing on HTTP services;

2. Supports static pages (HTML), but does not support dynamic requests such as: CGI, Servlet/JSP, PHP, ASP, etc.;

3. It has strong scalability and can support PHP through plug-ins. You can connect Apache to Tomcat one-way to achieve connectivity;

4. Apache is the world's number one web server.

Tomcat: is a JSP server (Servlet container) developed in Java that complies with the JavaEE Servlet specification and is an extension of Apache.

Features: Free Java application server

1. Mainly used to parse JSP/Servlet, focusing on Servlet engine;

2. Supports static pages, but is not as efficient as Apache High; supports Servlet and JSP requests;

3. Tomcat itself also has a built-in HTTP server to support static content, which can be integrated with Apache through Tomcat's configuration management tool.

Apache Tomcat:

Advantages after integrating the two:

If the request is a static web page, it will be processed by Apache and the result will be returned; if it is For dynamic requests, Apache will forward the parsing work to Tomcat for processing, and Tomcat will return the results through Apache after processing. This can achieve division of labor and cooperation, achieve remote load balancing, and improve system performance.

Apache is a web server, and tomcat is an application (java) server. It is just a servlet container, which can be considered an extension of apache, but can run independently of apache.

In other words, apache is a truck that can hold some things such as html. But it cannot be filled with water. To fill it, you must have a container (bucket), and this bucket does not need to be placed on the truck.

The above is the detailed content of What is the difference between Apache server and tomcat server?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn