How do I shutdown JBoss AS 7 server?

前端 未结 6 1486
醉酒成梦
醉酒成梦 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: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

    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
    

提交回复
热议问题