How do I shutdown JBoss AS 7 server?

前端 未结 6 1483
醉酒成梦
醉酒成梦 2020-12-12 22:08

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 th

相关标签:
6条回答
  • 2020-12-12 22:41

    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
    
    0 讨论(0)
  • 2020-12-12 22:45

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

    0 讨论(0)
  • 2020-12-12 22:54

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

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

    Only for your information. ;)

    0 讨论(0)
  • 2020-12-12 22:55

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

    For Windows, proper syntax is mentioned below:

    ${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:

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

    For Linux, Syntax:

    ${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:

    ${JBOSS_HOME}/bin/shutdown.sh -s jnp://localhost:1099 -S
    
    0 讨论(0)
  • 2020-12-12 23:04

    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

    If you have set security realm then use:

    ./jboss-cli.sh --connect --controller=<host>:<port> --user=<username> --password=<password> /host=master:shutdown
    
    0 讨论(0)
  • 2020-12-12 23:04
     ./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

    0 讨论(0)
提交回复
热议问题