如何将 java(jar 或 war)部署到 Windows IIS
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9847118/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to deploy java (jar or war) onto Windows IIS
提问by Daniel G.
I have a java project that runs its own server (localhost) for users to access. I was then asked to deploy my tool in Apache so I wrapped it in a WAR file (along with some changes to create servlets) and that is what we are using now. However, I now need to deploy my app onto a Windows IIS server. Does anyone know of how to do this? Whats needs to be rewritten or modified, or is the only answer (found on another question) to install tomcat and have IIS talk to tomcat? Thank you very much
我有一个 Java 项目,它运行自己的服务器(本地主机)供用户访问。然后我被要求在 Apache 中部署我的工具,所以我将它包装在一个 WAR 文件中(以及创建 servlet 的一些更改),这就是我们现在正在使用的。但是,我现在需要将我的应用程序部署到 Windows IIS 服务器上。有谁知道如何做到这一点?什么需要重写或修改,或者是安装 tomcat 并让 IIS 与 tomcat 对话的唯一答案(在另一个问题上找到)?非常感谢
回答by aretai
This may be useful to you - http://tomcatiis.riaforge.org/
这可能对您有用 - http://tomcatiis.riaforge.org/
回答by Krish
It is very simple Process. Just follow the following steps. ( Version 5.5.25 )
这是非常简单的过程。只需按照以下步骤操作即可。( 版本 5.5.25 )
- Open Tomcat in Browser using http://tomcat-address(networkip or localhost)
It will open tomcat's page. - From the left side's Administration part click on the Tomcat Manager link. It will ask for the user-name and password. Supply the admin user-name password. In generat case it is "admin" and blank, means no password. After it will show you the list of the currently installed war files.
- Now go to Deploy section after the installed war application's list.
- There will be section of
WAR file to deploy
, click on choose file to select your .war file. - Now click on Deploy Button and its done.
- 使用http://tomcat-address(networkip or localhost)在浏览器中打开 Tomcat
它将打开 tomcat 的页面。 - 从左侧的 Administration 部分单击 Tomcat Manager 链接。它会询问用户名和密码。提供管理员用户名密码。在一般情况下它是“admin”和空白,意味着没有密码。之后它会向您显示当前安装的War文件的列表。
- 现在转到已安装的 war 应用程序列表后的 Deploy 部分。
- 将有 部分
WAR file to deploy
,单击选择文件以选择您的 .war 文件。 - 现在单击部署按钮并完成。
回答by Yaroslav
Try this: Deploying WAR files on IIS
试试这个:在 IIS 上部署 WAR 文件