简体   繁体   English

在Windows Server R2 Enterprise 2008中部署Java War文件

[英]deploying java war file in windows server R2 enterprise 2008

I need to deploy Java web application war file in a server (windows server R2 enterprise 2008). 我需要在服务器(Windows Server R2 Enterprise 2008)中部署Java Web应用程序war文件。 This server is in my organization in a local area network with known IP. 该服务器在我组织中的具有已知IP的局域网中。 I need to deploy my web application war file in this server. 我需要在此服务器中部署Web应用程序war文件。 I am open to use jboss or apache tomcat in this server and configure so that my application is accessible through [ip-address]/application url across local area network. 我愿意在此服务器中使用jboss或apache tomcat并进行配置,以便可以通过局域网中的[ip-address] /应用程序url访问我的应用程序。 Please guide me, am sorry if i sound too naive. 请指导我,对不起,如果我听起来太天真。

Tomcat 8 or jboss 7. Please help. Tomcat 8或jboss7。请帮助。

As per your comment, you are using JBoss 7.x or Tomcat 8.x. 根据您的评论,您正在使用JBoss 7.x或Tomcat8.x。 For JBoss Server, you need to copy your .war on the following location: 对于JBoss Server,您需要在以下位置复制.war:
${jboss.server.base.dir}/standalone/deployments/ $ {jboss.server.base.dir} / standalone / deployments /

Now if your server is already running then it will be deployed automatically otherwise you just need to start the server. 现在,如果您的服务器已经在运行,那么它将自动部署,否则您只需要启动服务器即可。

For Tomcat Server, you need to copy your wat file in your appBase and the default location of appBase is given below: 对于Tomcat服务器,您需要将wat文件复制到appBase中,并且appBase的默认位置如下所示:
$CATALINA_BASE/webapps $ CATALINA_BASE / webapps

This link will help you for JBoss Deployment and this link will help you for Tomcat Deployment 链接将帮助您进行JBoss部署,此链接将帮助您进行Tomcat部署

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM