简体   繁体   English

如何在tomcat服务器中管理多个war应用程序?

[英]how to manage multiple war application in tomcat server?

I use tomcat as web server,I want to deploy many same war file in tomcat server with different config.我使用tomcat作为Web服务器,我想在具有不同配置的tomcat服务器中部署许多相同的war文件。 How to do this in the best way possible manner?如何以最好的方式做到这一点?

So I want to run tomcat server per each war application, my means is tomcat1 handle the .war1 in webapp and ... or handle all war files with one tomcat?which one is better?所以我想为每个war应用程序运行tomcat服务器,我的意思是tomcat1处理webapp.war1和......或者用一个tomcat处理所有war文件?哪个更好?

更改战争文件的名称并部署

Use the same tomcat server, but copy and rename your web application to something different.使用相同的 tomcat 服务器,但将您的 Web 应用程序复制并重命名为不同的名称。 For eg, the original application name app , copy and rename as following.例如,原始应用程序名称app ,复制并重命名如下。

    webapp -> app1
              app2
              app3

Running a different tomcat server for each war application might not be necessary.可能没有必要为每个 war 应用程序运行不同的 tomcat 服务器。

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

相关问题 在 tomcat 服务器上部署 a.war 应用程序 - Deploying a .war application on a tomcat server Tomcat JDBC 在服务器上配置并包含在应用程序 WAR 中 - Tomcat JDBC configured on Server and included in Application WAR 如何在tomcat上部署Java Web应用程序(.war)? - How to deploy a Java Web Application (.war) on tomcat? 如何知道tomcat中当前应用之战的路径 - How to know the path of the war of the current application in tomcat 如何在tomcat docker容器中部署多次战争? - how to deploy multiple war in tomcat docker container? 如何在tomcat 7中保护多个war文件 - How to secure multiple war files in tomcat 7 部署不同应用程序的多次war时,tomcat容器如何区分要读取的war文件的web.xml - how does tomcat container differentiate which web.xml of war file to read when multiple war of different application is deployed 无法在Apache Tomcat服务器上启动Spring Boot应用程序(WAR文件) - Spring Boot Application(WAR file) could not be started On Apache Tomcat Server 一台Apache Tomcat应用程序服务器,具有2个配置的war应用程序和一个MessageSource异常 - One Apache Tomcat application server with 2 configured war applications and a MessageSource exception Tomcat服务器启动后自动从War应用程序运行方法 - Run method from war application automatically after tomcat server startup
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM