如何手动将war文件部署到tomcat? [英] How to deploy war files to tomcat manually?
问题描述
我在某个位置发生战争,C:\Documents and Settings\myProj.war。
Web项目也可在C:\Documents and Settings\myProj中找到。
我想将其部署到一个tomcat。
tomcat的位置是C:\Documents and Settings\tomcat6x。
请告诉我如何手动或通过命令提示符。
一个应用程序已经在Tomcat中运行。它是一个maven项目。我想在不是maven应用程序的同一个tomcat上部署另一个应用程序。
这些是我必须遵循的步骤在本地主机上手动在Tomcat中部署战争:
-
如果Tomcat正在运行,请停止/ li>
-
转到tomcat安装文件夹(这必须是C:\Documents and Settings\tomcat6x ),让我们称之为
**< tomcat> **
。 -
在
< tomcat>
,删除 temp 和工作文件夹。它们只包含临时文件。 -
如果是一个 jar 文件可能是配置,所以将其放在
< tomcat>
/ lib文件夹。如果是 war 文件,请将其放在< tomcat>
/ deploy或< tomcat>
/ webapps文件夹。 -
启动您的tomcat。
I have a war at location "C:\Documents and Settings\myProj.war".
The web project is also available at "C:\Documents and Settings\myProj".
I want to deploy this to one tomcat.
location of the tomcat is "C:\Documents and Settings\tomcat6x".
Please tell me how to do this manually or through command prompt.
One application is already running in Tomcat. It is a maven project. I want to deploy another application on same tomcat which is not maven application.
These are the steps I follow when I have to manually deploy a war in Tomcat on localhost:
If Tomcat is running, stop/kill it.
Go to the tomcat installation folder (this must be C:\Documents and Settings\tomcat6x for you), let's call it
**<tomcat>**
.In
<tomcat>
, delete the temp and work folders. They only contain temporary files.If it's a jar file maybe is for configuration, so drop it in
<tomcat>
/lib folder. If it's a war file, drop it in<tomcat>
/deploy or in<tomcat>
/webapps folder.Start your tomcat.
这篇关于如何手动将war文件部署到tomcat?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!