定义,10.109.226.145为disc磁盘节点,10.109.226.147为ram内存节点。
首先,配置必要的插件
在145/147上分别执行
[root@localhost sbin]# ./rabbitmq-plugins enable rabbitmq_management --控制台
[root@localhost sbin]# ./rabbitmq-plugins enable rabbitmq_stomp --话务控件所需
其次,将145/147的rabbitmq都启动起来
在disc主机上
[root@localhost sbin]# cdmq
[root@localhost sbin]# ./rabbitmq-server &
然后在ram主机上
[root@localhost sbin]# cdmq
[root@localhost sbin]# ./rabbitmq-server &
然后将147作为内存节点加入145组成集群
[root@localhost sbin]# ./rabbitmqctl stop_app
[root@localhost sbin]# ./rabbitmqctl reset
[root@localhost sbin]# ./rabbitmqctl join_cluster --ram rabbit@server145
[root@localhost sbin]# ./rabbitmqctl start_app
[root@localhost sbin]#
这样集群就配置好了。
首先,配置必要的插件
在145/147上分别执行
[root@localhost sbin]# ./rabbitmq-plugins enable rabbitmq_management --控制台
[root@localhost sbin]# ./rabbitmq-plugins enable rabbitmq_stomp --话务控件所需
其次,将145/147的rabbitmq都启动起来
在disc主机上
[root@localhost sbin]# cdmq
[root@localhost sbin]# ./rabbitmq-server &
然后在ram主机上
[root@localhost sbin]# cdmq
[root@localhost sbin]# ./rabbitmq-server &
然后将147作为内存节点加入145组成集群
[root@localhost sbin]# ./rabbitmqctl stop_app
[root@localhost sbin]# ./rabbitmqctl reset
[root@localhost sbin]# ./rabbitmqctl join_cluster --ram rabbit@server145
[root@localhost sbin]# ./rabbitmqctl start_app
[root@localhost sbin]#
这样集群就配置好了。