3.6.9. Shut the Application Server down using the Management CLI
Prerequisites
Procedure 3.22. Shut down the Application Server
Run the
shutdownoperation- From the Management CLI, use the
shutdownoperation to shut the server down via theSystem.exit(0)system call. For more details on operation requests, refer to the topic Section 3.5.8, “Use Operations and Commands in the Management CLI”.- In the standalone mode, use the following command:
[standalone@localhost:9999 /]
:shutdown - In the domain mode, use the following command with the appropriate host name:
[domain@localhost:9999 /]
/host=master:shutdown
- To connect to a detached CLI instance and shut down the server, execute the following command:
jboss-cli.sh --connect command=:shutdown
- To connect to a remote CLI instance and shut down the server, execute the following command:
[disconnected /] connect IP_ADDRESS Connected to IP_ADDRESS:PORT_NUMBER [192.168.1.10:9999 /] :shutdown
Replace IP_ADDRESS with the IP address of your instance.
The application server is shut down. The Management CLI will be disconnected as the runtime is unavailable.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.