Eclipse Tomcat7服务器不支持远程主机

Eclipse Tomcat7服务器不支持远程主机

问题描述:

我的问题是:当我尝试将我的Tomcat7添加到Eclipse EE作为服务器时,会收到一条错误消息:

My Problem is: When I try to add my Tomcat7 to Eclipse EE as a server, I get an error message that says:


当前选择的服务器类型不支持远程主机

"The currently selected server type does not support remote hosts"

有谁知道如何解决这个问题?或者如何在Tomcat中启用远程主机?

Does anyone know how to solve this problem? Or how to enable remote hosts in Tomcat?

Eclipse中的Tomcat支持用于在本机上运行Tomcat。这是必要的,因为Eclipse通过将Web模块复制到Tomcat安装中的文件夹中将Web模块部署到Tomcat。它不能将东西部署到远程Tomcat服务器,因为它不能将文件复制到另一台计算机上的文件夹中。

The Tomcat support in Eclipse is meant for running Tomcat locally on your own machine. That's necessary because Eclipse deploys web modules to Tomcat by copying them into a folder in the Tomcat installation. It can't deploy things to a remote Tomcat server because it can't copy files into a folder on a different computer.

通常您将自己运行Tomcat计算机进行开发,然后(手动)将应用程序部署到远程服务器,当您希望将其应用于世界其他地区。

Typically you'd run Tomcat on your own computer for development, and then (manually) deploy your application to a remote server when you want to make it available to the rest of the world.