Show Table of Contents
3.6.9. 管理 CLI を使用したアプリケーションサーバーのシャットダウン
要件
手順3.20 アプリケーションサーバーのシャットダウン
shutdown操作の実行- 管理 CLI で、
shutdown操作を使用しSystem.exit(0)システムコールを介してサーバーをシャットダウンします。操作要求の詳細については、トピック「管理 CLI での操作およびコマンドの使用」を参照してください。- スタンドアロンモードでは、次のコマンドを使用します。
[standalone@localhost:9999 /]
:shutdown - ドメインモードでは、適切なホスト名を指定して次のコマンドを使用します。
[domain@localhost:9999 /]
/host=master:shutdown
- デタッチした CLI インスタンスへ接続し、サーバーをシャットダウンするには、次のコマンドを実行します。
jboss-cli.sh --connect command=:shutdown
- リモート CLI インスタンスへ接続し、サーバーをシャットダウンするには、次のコマンドを実行します。
[disconnected /] connect IP_ADDRESS Connected to IP_ADDRESS:PORT_NUMBER [192.168.1.10:9999 /] :shutdown
IP_ADDRESS をインスタンスの IP アドレスに置き換えます。
結果
アプリケーションサーバーがシャットダウンされます。ランタイムが利用できない場合に、管理 CLI が切断されます。

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.