如何关闭JBoss作为7服务器?

时间:2022-03-22 15:55:19

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-as.7.1.0。CR1b jboss-as.7.1.0。最后,并希望从控制台关闭运行实例。在以前的版本中,命令。

$JBOSS_HOME/bin/jboss-admin.sh --connect command=:shutdown

was available, but I do not see jboss-admin.sh in the bin directory or other shell scripts for shutting down the server.

可用,但我没有看到jboss-admin。sh在bin目录或其他shell脚本中关闭服务器。

6 个解决方案

#1


79  

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团队决定在小修改升级之间重新组织脚本。在任何情况下,jboss-cli。sh是jboss-admin的替代品。sh(它们对所有意图和目的都是完全相同的脚本)。所以你的新关机命令是:

 ./jboss-cli.sh --connect command=:shutdown

#2


21  

For standalone mode,

对于独立的模式,

./jboss-cli.sh --connect command=:shutdown

For domain mode, hostname should be specified like this:

对于域模式,应该像这样指定主机名:

./jboss-cli.sh --connect  /host=master:shutdown

'master' is the default hostname. The server hostname could be found in $JBOSS_HOME/domain/configuration/host.xml

“master”是默认的主机名。可以在$JBOSS_HOME/domain/configuration/host.xml中找到服务器主机名。

If you have set security realm then use:

如果您设置了安全域,那么使用:

./jboss-cli.sh --connect --controller=<host>:<port> --user=<username> --password=<password> /host=master:shutdown

#3


6  

If your server has the controller listening in a different URL than localhost:

如果您的服务器的控制器监听的URL不同于localhost:

${JBOSS_HOME}/bin/jboss-cli.sh --connect --controller=<host>:<port> command=:shutdown

Only for your information. ;)

只是为了你的信息。,)

#4


2  

In Windows ......jboss-eap-6.1\bin\jboss-cli.bat Double click or run by cmd prompt.

在Windows……jboss eap - 6.1 \ bin \ jboss-cli。双击或由cmd提示运行。

#5


-1  

 ./jboss-cli.sh --connect command=:shutdown

when I use this command in standalone mode it off , but when I 'm in an ssh connection must exit and enter again and then run this command

当我在独立模式下使用这个命令时,它关闭了,但是当我在ssh连接中必须退出并重新输入,然后运行这个命令。

#6


-1  

I just want to contribute the answer for Jboss 5.x server, because the question is relevant to JBoss shutdown.

我只是想为Jboss 5提供答案。x服务器,因为这个问题与JBoss关机有关。

For Windows, proper syntax is mentioned below:

对于Windows,以下是正确的语法:

${JBOSS_HOME}/bin/shutdown.bat -s jnp://applicationHostedEnvironment:portNumber -S

For example: If the application is hosted on local machine with the port 1099 then use:

例如:如果应用程序驻留在本地机器上,而端口1099则使用:

${JBOSS_HOME}/bin/shutdown.bat -s jnp://localhost:1099 -S

For Linux, Syntax:

对于Linux,语法:

${JBOSS_HOME}/bin/shutdown.sh -s jnp://applicationHostedEnvironment:portNumber -S<br>

For example: If the application is hosted on local machine with the port 1099 then use:

例如:如果应用程序驻留在本地机器上,而端口1099则使用:

${JBOSS_HOME}/bin/shutdown.sh -s jnp://localhost:1099 -S

#1


79  

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团队决定在小修改升级之间重新组织脚本。在任何情况下,jboss-cli。sh是jboss-admin的替代品。sh(它们对所有意图和目的都是完全相同的脚本)。所以你的新关机命令是:

 ./jboss-cli.sh --connect command=:shutdown

#2


21  

For standalone mode,

对于独立的模式,

./jboss-cli.sh --connect command=:shutdown

For domain mode, hostname should be specified like this:

对于域模式,应该像这样指定主机名:

./jboss-cli.sh --connect  /host=master:shutdown

'master' is the default hostname. The server hostname could be found in $JBOSS_HOME/domain/configuration/host.xml

“master”是默认的主机名。可以在$JBOSS_HOME/domain/configuration/host.xml中找到服务器主机名。

If you have set security realm then use:

如果您设置了安全域,那么使用:

./jboss-cli.sh --connect --controller=<host>:<port> --user=<username> --password=<password> /host=master:shutdown

#3


6  

If your server has the controller listening in a different URL than localhost:

如果您的服务器的控制器监听的URL不同于localhost:

${JBOSS_HOME}/bin/jboss-cli.sh --connect --controller=<host>:<port> command=:shutdown

Only for your information. ;)

只是为了你的信息。,)

#4


2  

In Windows ......jboss-eap-6.1\bin\jboss-cli.bat Double click or run by cmd prompt.

在Windows……jboss eap - 6.1 \ bin \ jboss-cli。双击或由cmd提示运行。

#5


-1  

 ./jboss-cli.sh --connect command=:shutdown

when I use this command in standalone mode it off , but when I 'm in an ssh connection must exit and enter again and then run this command

当我在独立模式下使用这个命令时,它关闭了,但是当我在ssh连接中必须退出并重新输入,然后运行这个命令。

#6


-1  

I just want to contribute the answer for Jboss 5.x server, because the question is relevant to JBoss shutdown.

我只是想为Jboss 5提供答案。x服务器,因为这个问题与JBoss关机有关。

For Windows, proper syntax is mentioned below:

对于Windows,以下是正确的语法:

${JBOSS_HOME}/bin/shutdown.bat -s jnp://applicationHostedEnvironment:portNumber -S

For example: If the application is hosted on local machine with the port 1099 then use:

例如:如果应用程序驻留在本地机器上,而端口1099则使用:

${JBOSS_HOME}/bin/shutdown.bat -s jnp://localhost:1099 -S

For Linux, Syntax:

对于Linux,语法:

${JBOSS_HOME}/bin/shutdown.sh -s jnp://applicationHostedEnvironment:portNumber -S<br>

For example: If the application is hosted on local machine with the port 1099 then use:

例如:如果应用程序驻留在本地机器上,而端口1099则使用:

${JBOSS_HOME}/bin/shutdown.sh -s jnp://localhost:1099 -S