The difference between Nginx/Apache and Apache Tomcat
PHP中文网2017-05-16 17:04:06
0
2
504
Nginx/Apache is a Web Server, and Apache Tomact is a servlet container
I would like to ask, what are the specific differences? Because if you use Apache Tomact, you already have the function of responding to http requests
联系
都可以做web服务器,对外服务。
区别
正如你所说:
tomcat可以对jsp进行解析,nginx和apache只是web服务器,可以简单理解为只能提供html静态文件服务。php等动态语言的支持靠的是扩展。
总结一下:tomcat具有nginx和apache的静态文件服务功能,同时具备jsp解析功能。
tomcat对静态资源的请求效率太低,一般使用ngxin/lighttpd(apache)做前端,只是把jsp的请求转发给tomcat。