Rabbitmq如何安装插件

Rabbitmq如何安装插件

安装 rabbitmq_delayed_message_exchange 和 amqp_client

rabitmq-plugins命令详情

文档:RabbitMQ手册之rabbitmq-plugins.md

查看本地插件

# rabbitmq-plugins list
 Configured: E = explicitly enabled; e = implicitly enabled
 | Status:   * = running on rabbit@7f153b30f57e
 |/
[  ] rabbitmq_amqp1_0                  3.6.14
[  ] rabbitmq_auth_backend_ldap        3.6.14
[  ] rabbitmq_auth_mechanism_ssl       3.6.14
[  ] rabbitmq_consistent_hash_exchange 3.6.14
[  ] rabbitmq_event_exchange           3.6.14
[  ] rabbitmq_federation               3.6.14
[  ] rabbitmq_federation_management    3.6.14
[  ] rabbitmq_jms_topic_exchange       3.6.14
[E*] rabbitmq_management               3.6.14
[e*] rabbitmq_management_agent         3.6.14
[  ] rabbitmq_management_visualiser    3.6.14
[  ] rabbitmq_mqtt                     3.6.14
[  ] rabbitmq_random_exchange          3.6.14
[  ] rabbitmq_recent_history_exchange  3.6.14
[  ] rabbitmq_sharding                 3.6.14
[  ] rabbitmq_shovel                   3.6.14
[  ] rabbitmq_shovel_management        3.6.14
[  ] rabbitmq_stomp                    3.6.14
[  ] rabbitmq_top                      3.6.14
[  ] rabbitmq_tracing                  3.6.14
[  ] rabbitmq_trust_store              3.6.14
[e*] rabbitmq_web_dispatch             3.6.14
[  ] rabbitmq_web_mqtt                 3.6.14
[  ] rabbitmq_web_mqtt_examples        3.6.14
[  ] rabbitmq_web_stomp                3.6.14
[  ] rabbitmq_web_stomp_examples       3.6.14
[  ] sockjs                            0.3.4

安装amqp_client插件

# rabbitmq-plugins enable amqp_client                  
Plugin configuration unchanged.

Applying plugin configuration to rabbit@7f153b30f57e... nothing to do.

安装 rabbitmq_delayed_message_exchange 插件

# rabbitmq-plugins enable rabbitmq_delayed_message_exchange
Error: The following plugins could not be found:
  rabbitmq_delayed_message_exchange

通过上述命令发现插件 rabbitmq_delayed_meaage_exchange没有安装,需要下载安装

下载rabbitmq_delayed_meaage_exchange

下载地址:http://www.rabbitmq.com/community-plugins.html

# linux: 
wget https://dl.bintray.com/rabbitmq/community-plugins/3.6.x/rabbitmq_delayed_message_exchange/rabbitmq_delayed_message_exchange-20171215-3.6.x.zip
# unzip解压到
/usr/lib/rabbitmq/lib/rabbitmq_server-version/plugins/rabbitmq_delayed_message_exchange-20171201-3.7.x.ez

重新安装插件

# rabbitmq-plugins enable rabbitmq_delayed_message_exchange
Error: The following plugins could not be found:
  rabbitmq_delayed_message_exchange

参考文档

链接:https://blog.csdn.net/youjin/article/details/82586888
posted @ 2020-03-17 16:15  evescn  阅读(2147)  评论(0编辑  收藏  举报