A.2. 准备 HAProxy 节点
以下设置假定两个名为
haproxy 和 haproxy2 的 HAProxy 节点,以及名为 rgw1 和 rgw2 的 Ceph 对象网关服务器。您可以使用您喜欢的任何命名规则。在两个 HAProxy 节点上执行以下步骤:
- 安装 Red Hat Enterprise Linux 7.
- 注册节点。
# subscription-manager register - 启用红帽企业 Linux 7 服务器存储库。
# subscription-manager repos --enable=rhel-7-server-rpms - 更新服务器。
# yum update -y - 根据需要安装管理工具(例如 wget、vim 等等)。
- 打开端口 80。
# firewall-cmd --zone=public --add-port 80/tcp --permanent # firewall-cmd --reload - 对于 HTTPS,打开端口 443。
# firewall-cmd --zone=public --add-port 443/tcp --permanent # firewall-cmd --reload