1、rabbitMQ是由Erlang语言开发,因此需要安装Erlang,官网下载(http://www.erlang.org/downloads),我是在Linux环境下安装的,下载如图所示对的文件
[root@localhost ~]# rabbitmqctl status
Status of node rabbit@localhost
[{pid,77453},
{running_applications,
[{rabbit,"RabbitMQ","3.6.15"},
{mnesia,"MNESIA CXC 138 12","4.15.2"},
{ranch,"Socket acceptor pool for TCP protocols.","1.3.2"},
{ssl,"Erlang/OTP SSL application","8.2.3"},
{public_key,"Public key infrastructure","1.5.2"},
{asn1,"The Erlang ASN1 compiler version 5.0.4","5.0.4"},
{rabbit_common,
"Modules shared by rabbitmq-server and rabbitmq-erlang-client",
"3.6.15"},
{recon,"Diagnostic tools for production use","2.3.2"},
{crypto,"CRYPTO","4.2"},
{compiler,"ERTS CXC 138 10","7.1.4"},
{xmerl,"XML parser","1.3.16"},
{os_mon,"CPO CXC 138 46","2.4.4"},
{syntax_tools,"Syntax tools","2.1.4"},
{sasl,"SASL CXC 138 11","3.1.1"},
{stdlib,"ERTS CXC 138 10","3.4.3"},
{kernel,"ERTS CXC 138 10","5.4.1"}]},
{os,{unix,linux}},
{erlang_version,
"Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:64] [hipe] [kernel-poll:true]\n"},
{memory,
[{connection_readers,0},
{connection_writers,0},
{connection_channels,0},
{connection_other,0},
{queue_procs,2840},
{queue_slave_procs,0},
{plugins,0},
{other_proc,21305464},
{metrics,184432},
{mgmt_db,0},
{mnesia,61680},
{other_ets,1625240},
{binary,57848},
{msg_index,46872},
{code,21665561},
{atom,951465},
{other_system,9084230},
{allocated_unused,14490720},
{reserved_unallocated,0},
{total,65048576}]},
{alarms,[]},
{listeners,[{clustering,25672,"::"},{amqp,5672,"::"}]},
{vm_memory_calculation_strategy,rss},
{vm_memory_high_watermark,0.4},
{vm_memory_limit,409485312},
{disk_free_limit,50000000},
{disk_free,14136840192},
{file_descriptors,
[{total_limit,924},{total_used,2},{sockets_limit,829},{sockets_used,0}]},
{processes,[{limit,1048576},{used,154}]},
{run_queue,0},
{uptime,38},
{kernel,{net_ticktime,60}}]
查看集群:[root@localhost ~]# rabbitmqctl cluster_status
当前是单节点,信息如下:
Cluster status of node rabbit@localhost
[{nodes,[{disc,[rabbit@localhost]}]},
{running_nodes,[rabbit@localhost]},
{cluster_name,<<"rabbit@localhost">>},
{partitions,[]},
{alarms,[{rabbit@localhost,[]}]}]