如何手动将war文件部署到tomcat? [英] How to deploy war files to tomcat manually?

查看:149
本文介绍了如何手动将war文件部署到tomcat?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在某个位置发生战争,C:\Documents and Settings\myProj.war。



Web项目也可在C:\Documents and Settings\myProj中找到。



我想将其部署到一个tomcat。



tomcat的位置是C:\Documents and Settings\tomcat6x。



请告诉我如何手动或通过命令提示符。



一个应用程序已经在Tomcat中运行。它是一个maven项目。我想在不是maven应用程序的同一个tomcat上部署另一个应用程序。

解决方案

这些是我必须遵循的步骤在本地主机上手动在Tomcat中部署战争:


  1. 如果Tomcat正在运行,请停止/ li>

  2. 转到tomcat安装文件夹(这必须是C:\Documents and Settings\tomcat6x ),让我们称之为 **< tomcat> **


  3. < tomcat> ,删除 temp 工作文件夹。它们只包含临时文件。


  4. 如果是一个 jar 文件可能是配置,所以将其放在< tomcat> / lib文件夹。如果是 war 文件,请将其放在< tomcat> / deploy或< tomcat> / webapps文件夹。


  5. 启动您的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:

  1. If Tomcat is running, stop/kill it.

  2. Go to the tomcat installation folder (this must be C:\Documents and Settings\tomcat6x for you), let's call it **<tomcat>**.

  3. In <tomcat>, delete the temp and work folders. They only contain temporary files.

  4. 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.

  5. Start your tomcat.

这篇关于如何手动将war文件部署到tomcat?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆