简体   繁体   English

在本地部署没有Netbeans的Java Web应用程序

[英]deploying java web app without netbeans locally

i have a java web application that i want to deploy locally. 我有一个要在本地部署的Java Web应用程序。

how am i supposed to do that without running it through netbeans? 我应该怎么做而不通过netbeans运行它?

do i have anything to download? 我有什么要下载的吗? does xampp or wampserver can do that? xampp或wampserver可以做到吗?

i am using apache tomcat server. 我正在使用Apache Tomcat服务器。 and how can i change the url from ipaddress:8084/mywebapp to mywebapp only. 以及如何将url从ipaddress:8084 / mywebapp更改为mywebapp。 or the browser needs the ip and port to access the web app. 或浏览器需要ip和端口来访问Web应用。

when i installed netbeans it has apache tomcat server already can i use that as my host even not running netbeans? 当我安装netbeans时,它已经具有apache tomcat服务器了,我可以将其用作主机甚至不运行netbeans吗?

see http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html 参见http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html

1- install apache tomcat ( http://tomcat.apache.org/download-70.cgi ). 1-安装apache tomcat( http://tomcat.apache.org/download-70.cgi )。

2- may be you need to change windows path (for connection between JVM and web server). 2-可能是您需要更改Windows路径(用于JVM和Web服务器之间的连接)。

3- run apache tomcat(..\\Apache Tomcat 7.x.xx\\bin\\tomcatx.exe). 3-运行apache tomcat(.. \\ Apache Tomcat 7.x.xx \\ bin \\ tomcatx.exe)。

3- copy and pase '..\\dist\\mywebapp.war' to Apache Tomcat 7.x.xx\\webapp folder) 3-将'.. \\ dist \\ mywebapp.war'复制并粘贴到Apache Tomcat 7.x.xx \\ webapp文件夹中)

if web server (if work truly) move this file to work dir. 如果Web服务器(如果确实工作),则将该文件移至工作目录。

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

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