查看node状态
代码语言:javascript复制[root@h101 ~]# rabbitmqctl -n hare status
Status of node hare@h101 ...
[{pid,3116},
{running_applications,[{rabbit,"RabbitMQ","3.5.6"},
{mnesia,"MNESIA CXC 138 12","4.5"},
{os_mon,"CPO CXC 138 46","2.2.7"},
{xmerl,"XML parser","1.2.10"},
{sasl,"SASL CXC 138 11","2.1.10"},
{stdlib,"ERTS CXC 138 10","1.17.5"},
{kernel,"ERTS CXC 138 10","2.14.5"}]},
{os,{unix,linux}},
{erlang_version,"Erlang R14B04 (erts-5.8.5) [source] [64-bit] [smp:2:2] [rq:2] [async-threads:64] [kernel-poll:true]n"},
{memory,[{total,28139112},
{connection_readers,0},
{connection_writers,0},
{connection_channels,0},
{connection_other,2704},
{queue_procs,2704},
{queue_slave_procs,0},
{plugins,0},
{other_proc,9342280},
{mnesia,60144},
{mgmt_db,0},
{msg_index,33256},
{other_ets,794360},
{binary,8712},
{code,14756074},
{atom,1366585},
{other_system,1772293}]},
{alarms,[]},
{listeners,[{clustering,25673,"::"},{amqp,5673,"::"}]},
{vm_memory_high_watermark,0.4},
{vm_memory_limit,1604293427},
{disk_free_limit,50000000},
{disk_free,43578609664},
{file_descriptors,[{total_limit,924},
{total_used,3},
{sockets_limit,829},
{sockets_used,1}]},
{processes,[{limit,1048576},{used,124}]},
{run_queue,0},
{uptime,26}]
[root@h101 ~]# rabbitmqctl -n rabbit status
Status of node rabbit@h101 ...
[{pid,2975},
{running_applications,[{rabbit,"RabbitMQ","3.5.6"},
{mnesia,"MNESIA CXC 138 12","4.5"},
{os_mon,"CPO CXC 138 46","2.2.7"},
{xmerl,"XML parser","1.2.10"},
{sasl,"SASL CXC 138 11","2.1.10"},
{stdlib,"ERTS CXC 138 10","1.17.5"},
{kernel,"ERTS CXC 138 10","2.14.5"}]},
{os,{unix,linux}},
{erlang_version,"Erlang R14B04 (erts-5.8.5) [source] [64-bit] [smp:2:2] [rq:2] [async-threads:64] [kernel-poll:true]n"},
{memory,[{total,28100032},
{connection_readers,0},
{connection_writers,0},
{connection_channels,0},
{connection_other,2704},
{queue_procs,2704},
{queue_slave_procs,0},
{plugins,0},
{other_proc,9303984},
{mnesia,60144},
{mgmt_db,0},
{msg_index,33480},
{other_ets,794816},
{binary,8808},
{code,14756074},
{atom,1366585},
{other_system,1770733}]},
{alarms,[]},
{listeners,[{clustering,25672,"::"},{amqp,5672,"::"}]},
{vm_memory_high_watermark,0.4},
{vm_memory_limit,1604293427},
{disk_free_limit,50000000},
{disk_free,43578597376},
{file_descriptors,[{total_limit,924},
{total_used,3},
{sockets_limit,829},
{sockets_used,1}]},
{processes,[{limit,1048576},{used,124}]},
{run_queue,0},
{uptime,56}]
[root@h101 ~]# netstat -ant | grep 567
tcp 0 0 0.0.0.0:25672 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25673 0.0.0.0:* LISTEN
tcp 0 0 192.168.100.101:36794 192.168.100.101:25673 TIME_WAIT
tcp 0 0 192.168.100.101:57271 192.168.100.101:25672 TIME_WAIT
tcp 0 0 :::5672 :::* LISTEN
tcp 0 0 :::5673 :::* LISTEN
[root@h101 ~]# ll /var/lib/rabbitmq/.erlang.cookie
-r-------- 1 rabbitmq rabbitmq 20 Oct 23 00:00 /var/lib/rabbitmq/.erlang.cookie
[root@h101 ~]#