环境:
安装请参考:
https://blog.csdn.net/qq_37487520/article/details/126079651
https://www.cnblogs.com/myifb/articles/16638251.html
启用插件时,不用写插件版本号:rabbitmq-plugins enable rabbitmq_delayed_message_exchange
报错原因:
https://blog.csdn.net/xcy1193068639/article/details/96486344
就是需要在节点类型为disc的节点上运行。
解决
[root@middlewareserver3 plugins]# rabbitmqctl cluster_status
Cluster status of node rabbit@middlewareserver3 ...
[{nodes,[{disc,[rabbit@middlewareserver1]},
{ram,[rabbit@middlewareserver3,rabbit@middlewareserver2]}]},
{running_nodes,[rabbit@middlewareserver2,rabbit@middlewareserver1,
rabbit@middlewareserver3]},
{cluster_name,<<"rabbit@middlewareserver1">>},
{partitions,[]},
{alarms,[{rabbit@middlewareserver2,[]},
{rabbit@middlewareserver1,[]},
{rabbit@middlewareserver3,[]}]}]
[root@middlewareserver3 plugins]# rabbitmqctl -n rabbit@middlewareserver3 stop_app
Stopping rabbit application on node rabbit@middlewareserver3 ...
[root@middlewareserver3 plugins]# rabbitmqctl -n rabbit@middlewareserver3 change_cluster_node_type disc
Turning rabbit@middlewareserver3 into a disc node
[root@middlewareserver3 plugins]# rabbitmqctl -n rabbit@middlewareserver3 start_app
标签:node,插件,exchange,rabbitmq,报错,rabbit,plugins,middlewareserver3
From: https://www.cnblogs.com/Shieryue/p/16940903.html