Show Table of Contents
19.5.4. 安装 mod_cluster 模块至 Apache HTTP 服务器或 JBoss Enterprise Web Server(RPM 方式)
预备条件
- 要执行这个任务,您必须使用安装在 Red Hat 企业版 Linux 6 里的 Apache HTTP Server 或JBoss Enterprise Web Server,或者作为 JBoss EAP 6 可下载组件的独立 HTTP 服务器。
- 如果你需要在 Red Hat 企业版 Linux 6 里安装 Apache HTTP 服务器,请使用《Red Hat Enterprise Linux 6 部署指南》里的说明。
- 如果您需要安装作为 JBoss EAP 6 的可下载组件的独立的 HTTP 服务器,请参考 第 19.3.2 节 “安装 JBoss EAP 6 附带的 Apache HTTP 服务器(ZIP 方式)”。
- 如果你需要安装 JBoss Enterprise Web Server,请使用《JBoss Enterprise Web Server 安装指南》里的说明。
- 您必须用管理员权限(root)登录。
- 您必须有活动的
jbappplatform-6-ARCH-server-VERS-rpmRHN 频道的订阅。
RPM 安装方法对于 Red Hat 企业版 Linux 5 和 6 来说都是类似的,只是要求安装了 Apache HTTP Server 2.2.15 的 Red Hat 企业版 Linux 6 用户有少许的变化。
- 用 YUM 安装
mod_cluster-native软件包:yum install mod_cluster-native
- Apache HTTP Server 2.2.15:
- 如果您选择使用 Apache HTTP Server 2.2.15,您必须通过注释 httpd.conf 文件里的
LoadModule proxy_balancer_module行来禁用mod_proxy_balancer模块。用下列命令或手动编辑这个文件:sed -i 's/^LoadModule proxy_balancer_module/#LoadModule proxy_balancer_module/;s/$//' /etc/httpd/conf/httpd.conf
- 如果您选择升级到 Apache HTTP Server 2.2.22,请用下列命令安装最新的版本。
yum install httpd
- 要在引导时启动 Apache HTTP Server 服务,请执行下列命令:
- 对于 Red Hat 企业版 Linux 5 和 6:
service httpd add
- 对于 Red Hat 企业版 Linux 7:
systemctl enable httpd22.service
- 用下列命令启动 mod_cluster 平衡器:
- 对于 Red Hat 企业版 Linux 5 和 6:
service httpd start
- 对于 Red Hat 企业版 Linux 7:
systemctl start httpd22.service

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.