The difference between nginx and tomcat

王林
Release: 2019-10-23 16:59:26
Original
17793 people have browsed it

The difference between nginx and tomcat

The difference between nginx and tomcat

nginx is commonly used as a static content service and proxy server, directly forwarding external requests to the subsequent application server (tomcat , Django, etc.), tomcat is more used as an application container, allowing java, web, and apps to soak in it.

Strictly speaking, nginx should be called HTTP Server, while tomcat is an Application Server and a container for Servlet/JSO applications.

The client accesses resources stored on the server (HTML files, image files, etc.) through HTTP Server. HTTP Server only faithfully transmits the files on the server to the client through the HTTP protocol.

The application server often runs behind the HTTP Server, executes the application, converts the dynamic content into static content, and distributes it to the client through the HTTP Server.

Note: nginx only distributes the request and does not process it!

Recommended tutorial: Nginx tutorial

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!