Linux 使用脚本重新启动 jboss 的最干净方法
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14510826/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
cleanest way to restart jboss using a script
提问by Saqib Ali
I am using " ./standalone.sh -c standalone-full.xml " to start JBOSS. What is the cleanest way to restart jboss in this case? Any scripts that you can share?
我正在使用“ ./standalone.sh -c standalone-full.xml ”来启动 JBOSS。在这种情况下重新启动 jboss 的最干净方法是什么?有什么脚本可以分享吗?
采纳答案by Petr Mensik
回答by wbdarby
@Petr Mensik's solution works well if you need to shutdown the server. But if you need to restart it in a single operation you can use:
如果您需要关闭服务器,@Petr Mensik的解决方案效果很好。但是如果您需要在单个操作中重新启动它,您可以使用:
jboss-cli.sh -c ":shutdown(restart=true)"
Thanks to these excellent JBoss notes.
感谢这些优秀的 JBoss 笔记。