Occasionally, when I was a beginner studying Java, I suddenly encountered a conceptual problem and was confused for a long time. So today I would like to share with you some questions-Apache and tomcat
Let's take a look at the following:
Apache focuses on httpserver
Tomcat focuses on the servlet engine. If it runs in standeon 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 a server that applies Java, it is just a servlet (JSP translated into servlet) container, you can recognize
It is an extension of Apache, but can run independently of Apache.
In other words, Apache can be regarded as a truck or two, and some things can be mounted, such as HTML and so on ......... but you can't hold water. To hold water, you must have a container (such as a bucket) and this bucket may not be placed on a truck ...............
OK, do you understand now? Haha,