3.6.9. Shut the Application Server down using the Management CLI
Prerequisites
Procedure 3.22. Shut down the Application Server
Run the
shutdown
operation- From the Management CLI, use the
shutdown
operation 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.
Result
The application server is shut down. The Management CLI will be disconnected as the runtime is unavailable.