Show Table of Contents
2.4.5. 用以前的配置启动服务器
下面的例子展示了如何用独立服务器的
standalone.xml 里的以前的配置启动应用服务器。相同的概念也适用于受管域的 domain.xml 和 host.xml。
这个例子回调了管理操作修改服务器模型时应用服务器自动保存的配置。
- 确定您要启动的备份版本。这个例子将回调成功引导后第一次修改前的服务器模型的实例。
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

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.