Show Table of Contents
2.4.7. 使用管理 CLI 加载配置快照
配置快照是当前服务器配置的时间点拷贝。管理员可以保存和加载这些拷贝。加载快照的过程和用于 第 2.4.5 节 “用以前的配置启动服务器” 的方法类似,都是从命令行而不是管理 CLI 界面运行来创建、列出和删除快照。
下面的例子使用了
standalone.xml 配置文件,但相同的过程适用于 domain.xml 和 host.xml 配置文件。
过程 2.15. 加载配置快照
- 确定要加载的快照。这个例子将从 snapshot 目录回调下列文件。下面是快照文件的默认路径。
EAP_HOME/standalone/configuration/standalone_xml_history/snapshot/20110812-191301472standalone.xml
快照是用相对路径表达的,上面的例子可以像下面这样编写。jboss.server.config.dir/standalone_xml_history/snapshot/20110812-191301472standalone.xml
- 通过传入文件名用所选的配置快照启动服务器。
EAP_HOME/bin/standalone.sh --server-config=standalone_xml_history/snapshot/20110913-164449522standalone.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.