RabbitMQ報錯及預設開放埠
報錯一:
=INFO REPORT==== 1-Jun-2017::09:10:12 ===
Clustering with ['[email protected]',[email protected],[email protected]] as disc node
=ERROR REPORT==== 1-Jun-2017::09:10:40 ===
Mnesia([email protected]): ** ERROR ** Mnesia on [email protected] could not connect to node(s) ['
=WARNING REPORT==== 1-Jun-2017::09:10:54 ===
global: [email protected] failed to connect to '[email protected]'
這個錯誤原因是Erlang埠4369未開放
預設埠說明 client端通訊口5672 管理口15672 server間內部通訊口25672 erlang發現口:4369報錯二
=INFO REPORT==== 1-Jun-2017::12:08:36 ===
connection <0.1181.0> (*.*.*.*:60634 -> 114.215.200.75:5673): user 'admin' authenticated and granted access to vhost '/'
=ERROR REPORT==== 1-Jun-2017::12:08:36 ===
Channel error on connection <0.1181.0> (121.40.108.39:60634 -> *.*.*.*:5673, vhost: '/', user: 'admin'), channel 1:
operation queue.declare caused a channel exception access_refused: access to queue 'MQDemoQueue' in vhost '/' refused for user 'admin'
原因是admin許可權不夠,使用了錯誤命令:
錯誤命令
"D:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.9\sbin\rabbitmqctl.bat" set_permissions -p / admin '.*' '.*' '.*'
正確命令
"D:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.9\sbin\rabbitmqctl.bat" set_permissions -p / admin .* .* .*
正確命令的正則不帶引號