rabbitmq单机集群实验

发表于 LINUX 分类,标签:


rabbitmq单机集群安装方法


yum -y install rabbitmq-server


RABBITMQ_NODE_PORT=5672 RABBITMQ_NODENAME=rabbit1 rabbitmq-server -detached

RABBITMQ_NODE_PORT=5673 RABBITMQ_NODENAME=rabbit2 rabbitmq-server -detached

RABBITMQ_NODE_PORT=5674 RABBITMQ_NODENAME=rabbit3 rabbitmq-server -detached


rabbitmqctl -n rabbit1 stop

rabbitmqctl -n rabbit2 stop

rabbitmqctl -n rabbit3 stop


rabbitmqctl -n rabbit1 stop_app

rabbitmqctl -n rabbit1 reset

rabbitmqctl -n rabbit1 start_app


rabbitmqctl -n rabbit2 stop_app

rabbitmqctl -n rabbit2 reset

rabbitmqctl -n rabbit2 join_cluster rabbit1@`hostname -s`

rabbitmqctl -n rabbit2 start_app



rabbitmqctl -n rabbit3 stop_app

rabbitmqctl -n rabbit3 reset

rabbitmqctl -n rabbit3 join_cluster rabbit1@`hostname -s`

rabbitmqctl -n rabbit3 start_app



rabbitmqctl -n rabbit3 cluster_status


参考文档

https://blog.csdn.net/u013256816/article/details/53264715


0 篇评论

发表我的评论