How do I shutdown a JBoss server using CLI command ?

Solution Verified - Updated -

Issue

  • How do I stop/shutdown server instances running in standalone mode?

  • We used to use JBoss shutdown.sh but this command is no longer used in EAP 6, what is the correct command to use instead?

  • How do I shutdown all the jboss instances on a server or virtual machine?

  • While trying to shutdown JBoss EAP6 using CLI we are getting the following Exception:

[jsenshar@localhost bin]$ ./jboss-cli.sh --connect --controller=localhost:9999 command=:shutdown
{
    "outcome" => "failed",
    "failure-description" => "JBAS010850: No handler for operation shutdown at address []",
    "rolled-back" => true
}
  • How do I shutdown a single JBoss instance when running in domain mode?
  • Default Password for Shutdown ?

  • How do I shutdown a server group when running in domain mode?

  • How to start remote slave node from Domain Controller? Is there a cli command to start remote slave node?

  • Below is the Shutdown script for JBoss EAP, Can this shutdown be done without specifying the username and password ?:
jboss-cli.bat --connect --controller=localhost:9999 --user=<username> --password=<password> command=:shutdown
  • I dont see any shutdown.bat file in bin directory , We must have that file right?or is it present with any other name? How to shutdown the EAP server then ?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.