2.4.3. 用以前的配置启动服务器
下面的例子展示了如何用独立服务器的
standalone.xml
里的以前的配置启动应用服务器。相同的概念也适用于受管域的 domain.xml
和 host.xml
。
这个例子回调了管理操作修改服务器模型时应用服务器自动保存的配置。
- 确定您要启动的备份版本。这个例子将回调成功引导后第一次修改前的服务器模型的实例。
EAP_HOME/configuration/standalone_xml_history/current/standalone.v1.xml
EAP_HOME/configuration/standalone_xml_history/current/standalone.v1.xml EAP_HOME/configuration/standalone_xml_history/current/standalone.v1.xml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 传入
jboss.server.config.dir
下的相对文件名,用备份模型的配置启动服务器。EAP_HOME/bin/standalone.sh --server-config=standalone_xml_history/current/standalone.v1.xml
EAP_HOME/bin/standalone.sh --server-config=standalone_xml_history/current/standalone.v1.xml EAP_HOME/bin/standalone.sh --server-config=standalone_xml_history/current/standalone.v1.xml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
结果
应用服务器用所选的配置启动了。