Red Hat Training
A Red Hat training course is available for Red Hat JBoss Enterprise Application Platform
2.4.7. 以前の設定でのサーバーの起動
以下の例は、
standalone.xml
を使用してスタンドアロンサーバーの以前の設定でアプリケーションサーバーを起動する方法を示しています。同じ概念が domain.xml
と host.xml
の管理対象ドメインにそれぞれ適用されます。
この例では、管理操作によってサーバーモデルが変更される場合にアプリケーションサーバーにより自動的に保存される以前の設定が呼び出されます。
例2.15 保存した設定でサーバーを起動します。
- 起動するバックアップバージョンを特定します。この例では、起動に成功すると最初の変更の前にサーバーモデルのインスタンスが呼び出されます。
EAP_HOME/standalone/configuration/standalone_xml_history/current/standalone.v1.xml
jboss.server.config.dir
下で相対ファイル名を渡し、バックアップモデルのこの設定を用いてサーバーを起動します。EAP_HOME/bin/standalone.sh --server-config=standalone_xml_history/current/standalone.v1.xml
結果
アプリケーションサーバーが、選択された設定で起動されます。
注記
ドメイン設定履歴は
EAP_HOME/domain/configuration/domain_xml_history/current/domain.v1.xml にあります
。
jboss.domain.config.dir
下で相対ファイル名を渡し、バックアップモデルのこの設定を用いてサーバーを起動します。
この設定を用いてドメインを起動するには、以下を実行します。
EAP_HOME/bin/domain.sh --domain-config=domain_xml_history/current/domain.v1.xml