Apache HTTP服务器和Apache Tomcat的区别? [英] Difference between the Apache HTTP Server and Apache Tomcat?

查看:191
本文介绍了Apache HTTP服务器和Apache Tomcat的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是什么在Apache HTTP服务器和Apache Tomcat?

What is the difference in terms of functionality between the Apache HTTP Server and Apache Tomcat?

我知道的Tomcat是用Java编写的HTTP服务器是C,但除此之外,我真的不知道他们是如何区分。他们有不同的功能?

I know that Tomcat is written in Java and the HTTP Server is in C, but other than that I do not really know how they are distinguished. Do they have different functionality?

推荐答案

的Apache Tomcat是用来部署Java Servlet和JSP。因此,在您的Java项目,你可以建立自己的战争(简称Web归档)文件,只是砸在deploy目录中的Tomcat。

Apache Tomcat is used to deploy your Java Servlets and JSPs. So in your Java project you can build your WAR (short for Web ARchive) file, and just drop it in the deploy directory in Tomcat.

所以基本上是Apache HTTP服务器,HTTP服务。 Tomcat是服务的Java技术的Servlet和JSP服务器。

So basically Apache is an HTTP Server, serving HTTP. Tomcat is a Servlet and JSP Server serving Java technologies.

Tomcat是一个servlet容器。一个servlet,到了最后,是一个Java类。 JSP文件(其类似于PHP和旧的ASP文件)产生成Java code(HttpServlet的),然后将其编译成的.class由服务器文件和由Java虚拟机执行。

Tomcat is a servlet container. A servlet, at the end, is a Java class. JSP files (which are similar to PHP, and older ASP files) are generated into Java code (HttpServlet), which is then compiled to .class files by the server and executed by the Java virtual machine.

这篇关于Apache HTTP服务器和Apache Tomcat的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆