创建集群
当前的集群为单节点
代码语言:javascript复制[root@rabbitmq ~]# rabbitmqctl cluster_status
Cluster status of node 'rabbit@rabbitmq' ...
[{nodes,[{disc,['rabbit@rabbitmq']}]},
{running_nodes,['rabbit@rabbitmq']},
{cluster_name,<<"rabbit@rabbitmq">>},
{partitions,[]}]
[root@rabbitmq ~]#
Tip: 也可以在管理界面里看得到
安装Rabbitmq
代码语言:javascript复制[root@new-mq-node nginx]# yum install erlang
...
...
[root@new-mq-node src]# wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.6/rabbitmq-server-3.5.6-1.noarch.rpm
--2016-01-13 13:57:46-- http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.6/rabbitmq-server-3.5.6-1.noarch.rpm
Resolving www.rabbitmq.com... 192.240.153.117
Connecting to www.rabbitmq.com|192.240.153.117|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4239866 (4.0M) [application/x-redhat-package-manager]
Saving to: “rabbitmq-server-3.5.6-1.noarch.rpm”
100%[===============================================================================>] 4,239,866 177K/s in 2m 7s
2016-01-13 13:59:54 (32.7 KB/s) - “rabbitmq-server-3.5.6-1.noarch.rpm” saved [4239866/4239866]
[root@new-mq-node src]#
[root@new-mq-node src]# rpm -ivh rabbitmq-server-3.5.6-1.noarch.rpm
warning: rabbitmq-server-3.5.6-1.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID 056e8e56: NOKEY
Preparing... ########################################### [100%]
1:rabbitmq-server ########################################### [100%]
[root@new-mq-node src]# rpm -qa | grep mq
rabbitmq-server-3.5.6-1.noarch
[root@new-mq-node src]#
要与原来节点的版本保持一致