如何关闭JBoss AS 7服务器? [英] How do I shutdown JBoss AS 7 server?
问题描述
我最近从jboss-as.7.1.0.CR1b
更新到了jboss-as.7.1.0.Final
,并想从控制台关闭正在运行的实例.在以前的版本中,命令
I recently updated from jboss-as.7.1.0.CR1b
to jboss-as.7.1.0.Final
and want to shutdown running instance from the console. In previous versions the command
$JBOSS_HOME/bin/jboss-admin.sh --connect command=:shutdown
可用,但在bin目录或其他用于关闭服务器的Shell脚本中看不到jboss-admin.sh
.
was available, but I do not see jboss-admin.sh
in the bin directory or other shell scripts for shutting down the server.
推荐答案
出于某种原因,JBoss团队决定在次要版本升级之间重新组织脚本.无论如何,jboss-cli.sh都是jboss-admin.sh的替代品(它们在所有意图和目的上都是完全相同的脚本).因此,您的新关机命令为:
For some reason the JBoss team decided to reorganize the scripts between minor revision upgrades. In any case, jboss-cli.sh is the replacement for jboss-admin.sh (they are for all intents and purposes the exact same script). So your new shutdown command is:
./jboss-cli.sh --connect command=:shutdown
这篇关于如何关闭JBoss AS 7服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!