我试图在Windows Server 2012 R2计算机上运行RabbitMQ,但它一直在崩溃。这是我在运行" rabbitmqctl status"时所看到的:
C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.5.1\sbin>rabbitmqctl status
Status of node 'rabbit@MYMACHINENAME' ...
Error: unable to connect to node 'rabbit@MYMACHINENAME': nodedown
DIAGNOSTICS
===========
attempted to contact: ['rabbit@MYMACHINENAME']
rabbit@MYMACHINENAME:
* unable to connect to epmd (port 4369) on MYMACHINENAME: address (cannot connect to host/port)
current node details:
- node name: 'rabbitmq-cli-6880@MYMACHINENAME'
- home dir: C:\Users\myname
- cookie hash: L9D52tPzwbCgggPY6qPS3g==
C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.5.1\sbin>
这是我在日志中看到的内容(经过一系列明显成功的" PROGRESS REPORT"条目):
=CRASH REPORT==== 22-Apr-2015::11:57:24 ===
crasher:
initial call: rabbit_epmd_monitor:init/1
pid: <0.165.0>
registered_name: []
exception exit: {{badmatch,noport},
[{rabbit_epmd_monitor,init,1,[]},
{gen_server,init_it,6,
[{file,"gen_server.erl"},{line,306}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,237}]}]}
in function gen_server:init_it/6 (gen_server.erl, line 330)
ancestors: [rabbit_epmd_monitor_sup,rabbit_sup,<0.140.0>]
messages: []
links: [<0.164.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 376
stack_size: 27
reductions: 463
neighbours:
=SUPERVISOR REPORT==== 22-Apr-2015::11:57:24 ===
Supervisor: {local,rabbit_epmd_monitor_sup}
Context: start_error
Reason: {{badmatch,noport},
[{rabbit_epmd_monitor,init,1,[]},
{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,237}]}]}
Offender: [{pid,undefined},
{name,rabbit_epmd_monitor},
{mfargs,{rabbit_epmd_monitor,start_link,[]}},
{restart_type,transient},
{shutdown,4294967295},
{child_type,worker}]
=CRASH REPORT==== 22-Apr-2015::11:57:24 ===
crasher:
initial call: application_master:init/4
pid: <0.139.0>
registered_name: []
exception exit: {bad_return,
{{rabbit,start,[normal,[]]},
{'EXIT',
{error,
{{shutdown,
{failed_to_start_child,rabbit_epmd_monitor,
{{badmatch,noport},
[{rabbit_epmd_monitor,init,1,[]},
{gen_server,init_it,6,
[{file,"gen_server.erl"},{line,306}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,237}]}]}}},
{child,undefined,rabbit_epmd_monitor_sup,
{rabbit_restartable_sup,start_link,
[rabbit_epmd_monitor_sup,
{rabbit_epmd_monitor,start_link,[]},
false]},
transient,infinity,supervisor,
[rabbit_restartable_sup]}}}}}}
in function application_master:init/4 (application_master.erl, line 133)
ancestors: [<0.138.0>]
messages: [{'EXIT',<0.140.0>,normal}]
links: [<0.138.0>,<0.7.0>]
dictionary: []
trap_exit: true
status: running
heap_size: 1598
stack_size: 27
reductions: 212
neighbours:
我在Windows防火墙中启用了端口4369,此端口似乎是&#34;正在侦听&#34;:
netstat -an
Proto Local Address Foreign Address State PID
TCP 0.0.0.0:4369 0.0.0.0:0 LISTENING 6496
过程6469:
C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.5.1\sbin>tasklist /svc /FI "PID eq 6496"
Image Name PID Services
========================= ======== ============================================
epmd.exe 6496 N/A
我可以追求关于其他途径/配置/故障排除的任何想法吗?
答案 0 :(得分:1)
这最终似乎是由于我连接到VPN。当不在VPN上时,我能够查看管理控制台,在命令行查看状态等。
答案 1 :(得分:0)
错误{badmatch,noport}表明RabbitMQ可能无法访问EPMD的端口。
如果您仍想使用带有RabbitMQ的VPN,请确保打开RabbitMQ所需的端口。
请参阅What ports does RabbitMQ use?并在此处阅读inet_dist_listen_{min,max}
:http://www.rabbitmq.com/configure.html