In this tutorial you will learn how to configure Apache Tomcat server in Eclipse IDE.

在本教程中,您将学习如何在Eclipse IDE中配置Apache Tomcat服务器。

Eclipse is a very popular IDE for developing Java applications. When you will download Eclipse, it doesn’t come with Tomcat server installed in it. Below is the step by step guide to download Apache Tomcat v7.0 and then add it to Eclipse. The same method will work for adding any other tomcat version.

Eclipse是用于开发Java应用程序的非常流行的IDE。 当您下载Eclipse时,它没有安装Tomcat服务器。 下面是下载Apache Tomcat v7.0并将其添加到Eclipse的分步指南。 添加任何其他tomcat版本的方法相同。

Also Read: How to Import Existing Project in Eclipse or MyEclipse

另请阅读: 如何在Eclipse或MyEclipse中导入现有项目

在Eclipse IDE中配置Apache Tomcat服务器

在Eclipse IDE中配置Apache Tomcat服务器 (Configure Apache Tomcat Server in Eclipse IDE)

1. First we need to download Apache Tomcat Server. You can skip this step if you already downloaded and installed Tomcat server. Go to https://tomcat.apache.org/.

1.首先,我们需要下载Apache Tomcat服务器。 如果您已经下载并安装了Tomcat服务器,则可以跳过此步骤。 转到https://tomcat.apache.org/

2. In left sidebar under Download section you can see all the available versions. Select any version according to you. Let say we want to download Tomcat 7.0, so click on it.

2.在“ 下载”部分下的左侧边栏中,您可以查看所有可用版本。 根据您的需要选择任何版本。 假设我们要下载Tomcat 7.0,因此单击它。

在Eclipse IDE中配置Apache Tomcat服务器

3. Scroll down and under Binary Distributions click on 32-bit/64-bit Windows Service Installer.  This will start the downloading. It is an executable file, just run it to install Tomcat Server.

3.向下滚动,然后在Binary Distributions ( 二进制分发)下,单击32位/ 64位Windows Service Installer。 这将开始下载。 它是一个可执行文件,只需运行它即可安装Tomcat Server。

在Eclipse IDE中配置Apache Tomcat服务器

4. After that open Eclipse IDE. Go to Window > Preferences.

4.之后,打开Eclipse IDE。 转到窗口>首选项

在Eclipse IDE中配置Apache Tomcat服务器

5. In the new window, go to Server > Runtime Environments.

5.在新窗口中,转到服务器>运行时环境

在Eclipse IDE中配置Apache Tomcat服务器

6. Click on Add button, it will open a window as given below. Now select appropriate Tomcat version. As in this case we have downloaded and installed v7.0, so I selected Apache Tomcat v7.0. Then click on Next button.

6.单击添加按钮,将打开一个如下所示的窗口。 现在选择适当的Tomcat版本。 在这种情况下,我们已经下载并安装了v7.0,因此我选择了Apache Tomcat v7.0。 然后单击下一步按钮。

在Eclipse IDE中配置Apache Tomcat服务器

7. Click on Browse button to select the Apache Tomcat installation directory. After that click on Finish button.

7.单击浏览按钮以选择Apache Tomcat安装目录。 之后,单击完成按钮。

在Eclipse IDE中配置Apache Tomcat服务器

8. Finally click on OK button to finish the configuration process.

8.最后单击确定按钮以完成配置过程。

在Eclipse IDE中配置Apache Tomcat服务器

9. You can run a web project to test whether the server is working or not.

9.您可以运行一个Web项目来测试服务器是否正在工作。

Below I have added a video tutorial that will help you to configure easily.

在下面,我添加了一个****,可以帮助您轻松配置。

Comment below if you are facing any difficulty to configure Apache Tomcat server in Eclipse IDE.

如果在Eclipse IDE中配置Apache Tomcat服务器遇到任何困难,请在下面发表评论。

Happy Coding!! ???? ????

快乐编码! ????

翻译自: https://www.thecrazyprogrammer.com/2016/03/configure-apache-tomcat-server-in-eclipse-ide.html

相关文章:

  • 2021-08-02
  • 2021-07-25
  • 2021-11-28
  • 2021-08-21
  • 2021-10-07
  • 2021-11-04
猜你喜欢
  • 2021-11-25
  • 2021-06-12
  • 2021-10-27
  • 2021-12-23
  • 2021-04-08
相关资源
相似解决方案