Web服务器和servlet容器之间的区别

编程入门 行业动态 更新时间:2024-10-27 21:18:15
本文介绍了Web服务器和servlet容器之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

"Web服务器"和"Servlet容器"之间有什么区别? 总的来说,所有Web服务器都是Servlet(Web)容器吗?反之亦然?

What is the difference between "A Web Server" and "A Servlet Container"? In general are all Web Servers Servlet(Web) Containers too or vice versa?

我一直在使用Apache Tomcat for JSP和Apache for PHP,但无法弄清楚两者之间的确切区别,到底在哪里?

I have been using Apache Tomcat for JSP and Apache for PHP but unable to figure out the exact difference between those two, where exactly lies the difference?

我尝试搜索以前的线程,但找不到很多.

I tried searching previous threads but could not find much.

谢谢! :-)

推荐答案

一个Servlet容器是一个必须能够运行Java Servlet的Web服务器.

A Servlet Container is a Web Server that must be able to run Java Servlets.

Web服务器是一个广义的术语,包括所有通过HTTP协议运行和通信的软件.

Web Server, on the other hand, is a broader term including all software running and communicating through HTTP protocol.

在以下定义下:

  • 所有Servlet容器都是 Web服务器
  • 并非所有的Web服务器都是 Servlet容器. IE. Apache HTTP Server无法直接运行Java Servlet.
  • All Servlet Containers are Web Servers
  • Not all Web Servers are Servlet Containers. I.E. Apache HTTP Server can not run Java Servlet directly.
  • 更多推荐

    Web服务器和servlet容器之间的区别

    本文发布于:2023-10-07 17:50:19,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1470084.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:容器   区别   服务器   Web   servlet

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!