Show Table of Contents
2.4. 配置文件
2.4.1. 关于 JBoss EAP 6 配置文件
JBoss EAP 6 的配置和以前版本已经有了很大的修改。最显著的不同是使用了简化的配置文件结构,它包含下面列出的一个或多个文件。
表 2.3. 配置文件的位置
| 服务器模式 | 位置 | 目的 |
|---|---|---|
| domain.xml | EAP_HOME/domain/configuration/domain.xml | 这是受管域的主配置文件。只有域主控制器可以读取这个文件。对于其他成员,它可以被删除。 |
| host.xml | EAP_HOME/domain/configuration/host.xml | 这个文件包含了受管域里的物理主机专有的配置细节,如网络接口、套接字绑定、主机名称和其他主机专有的细节。host.xml 文件包含了 host-master.xml 和 host-slave.xml 的全部功能,正如下面所描述的。这个文件没有出现在独立服务器里。 |
| host-master.xml | EAP_HOME/domain/configuration/host-master.xml | 这个文件包含了作为受管域里主服务器运行所需的配置细节。这个文件不会出现在独立服务器里。 |
| host-slave.xml | EAP_HOME/domain/configuration/host-slave.xml | 这个文件包含了作为受管域里从服务器运行所需的配置细节。这个文件不会出现在独立服务器里。 |
| standalone.xml | EAP_HOME/standalone/configuration/standalone.xml | 这是用于独立服务器的默认配置文件。它包含了独立服务器的所有信息,如子系统、网络、部署、套接字绑定和其他配置细节。当您启动独立服务器时会自动使用这个配置。 |
| standalone-full.xml | EAP_HOME/standalone/configuration/standalone-full.xml | 这是用于独立服务器的配置示例。它包含对每种可能的子系统的支持,除了那些要求高可用性的子系统。要使用它,请停止您的服务器并用下列命令重启:EAP_HOME/bin/standalone.sh -c standalone-full.xml。 |
| standalone-ha.xml | EAP_HOME/standalone/configuration/standalone-ha.xml | 这个配置文件示例启用所有的默认子系统并为独立服务器添加了 mod_cluster 和 JGroups 子系统,所以它可以参与高可用性或负载平衡群集。这个文件不适用于受管域。要使用这个配置,请停止您的服务器并用下列命令重启:EAP_HOME/bin/standalone.sh -c standalone-ha.xml。 |
| standalone-full-ha.xml | EAP_HOME/standalone/configuration/standalone-full-ha.xml | 这是用于独立服务器的配置示例。它包含对每种可能的子系统的支持,包含那些要求高可用性的子系统。要使用它,请停止您的服务器并用下列命令重启:EAP_HOME/bin/standalone.sh -c standalone-full-ha.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.