在启动wildfly之后,如何通过脚本一个接一个地部署WAR? [英] How deploy WARs one after other by script after startup wildfly?

查看:188
本文介绍了在启动wildfly之后,如何通过脚本一个接一个地部署WAR?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在启动Wildfly时遇到问题。我在应用程序服务器和XMX限制上有40多个WAR。有时服务器会启动,有时却无法启动...
在启动Wildfly之后,是否有一个接一个的部署WAR的方法?
服务器在启动过程中部署所有WAR时,启动时出现问题。

I have problem with starting Wildfly. I have more than 40 WARs on application server and XMX limitation. Sometimes server will start, sometimes not... There is any apportunity to deploy WARs one after other after startup Wildfly? Server has problem with start when is deploying all WARs during starting.

推荐答案

是的,无论您如何部署,您可以逐一部署。

Yes, regardless how you deploy, you can deploy one-by-one.

如果通过将WAR复制到独立/部署进行部署,则可以,您可以(1)启动一台空服务器,然后(2)手动或使用Shell脚本一一复制战争。但是,很有可能在关闭并重新启动完全部署的服务器时,问题再次出现。为了解决这个问题,也许您可​​以在关闭服务器之前使用脚本取消部署WAR。

If you deploy by copying your WARs to standalone/deployments, then yes, you can (1) start an empty server and then (2) copy the wars one-by-one manually or using a shell script. However, it is quite possible that your problem will re-appear when you shut down and start up the fully deployed server again. To solve that, maybe you could have a script to undeploy the WARs before shutting the server down.

您也可以使用 jboss达到类似的效果-cli :(1)启动一个空服务器(2)连接您的cli客户端 jboss-cli.sh --connect 和(3)部署一场战争:部署〜/ Desktop / my-app1.war ...请参阅 https://docs.wildfly.org/16/Admin_Guide.html#standalone-server-3

You can reach a similar effect also using jboss-cli: (1) start an empty server (2) connect your cli client jboss-cli.sh --connect and (3) deploy the WARs one-by-one: deploy ~/Desktop/my-app1.war ... See https://docs.wildfly.org/16/Admin_Guide.html#standalone-server-3

这篇关于在启动wildfly之后,如何通过脚本一个接一个地部署WAR?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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