[英]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.