Rabbitmq镜像模式集群+Haproxy+Keepalived
1、部署 RabbitMQ Cluster(HA)
1)、3台centos7操作系统,ip分别为:
10.11.59.113 10.11.59.114 10.11.59.115
域名解析:
#### vim /etc/hosts
10.11.59.113 rabbitmq1
10.11.59.114 rabbitmq2
10.11.59.115 rabbitmq3
###scp /etc/hosts 10.11.59.114:/etc/hosts
###scp /etc/hosts 10.11.59.115:/etc/hosts
确定三台rabbitmq可以ping通
ping rabbitmq1
ping rabbitmq2
ping rabbitmq3
安装依赖的erlang环境(3台)
yum -y install erlang socat rabbitmq-server
rabbitmq常用命令
systemctl start rabbitmq-server.service
systemctl stop rabbitmq-server.service
systemctl enable rabbitmq-server.service --now
systemctl enable rabbitmq-server.service --now
启动rabbitmq
systemctl start rabbitmq-server.service