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