环境信息
节点 | 地址 |
---|---|
node1 | 1111::1 |
node2 | 1111::2 |
node3 | 1111::3 |
rabbitmq-server-3.7.8-1.el7.src.rpm
erlang-21.1-2.el7.centos.src.rpm
centos7.5.1804
集群配置
- 配置/etc/hosts
1111::1 node1
1111::2 node2
1111::3 node3
- 配置/etc/rabbitmq/rabbitmq-env.conf
NODENAME=rabbit@node1
SERVER_ADDITIONAL_ERL_ARGS="-proto_dist inet6_tcp"
CTL_ERL_ARGS="-proto_dist inet6_tcp"
- 创建集群
#!/usr/bin/env bash
this_node=1111::1
other_node2=1111::2
other_node3=1111::3
scp_node2=[1111::2]
scp_node3=[1111::3]
other_name1=$(hostname)
other_name2=$(ssh ${other_node2} hostname)
other_name3=$(ssh ${other_node