Rabbitmq集群安装插件

项目需求

rabbitmq需要增加延时消息,增加服务可用性

方法

安装rabbitmq插件

安装步骤:

1、查看rabbitmq版本:

rabbitmqctl status
{rabbit,"RabbitMQ","3.6.16"

2、下载插件

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

3、选择插件,3.6.x版本,并下载

rabbitmq_delayed_message_exchange

4、将插件上传到服务器rabbitmq的plugins目录下,并且解压

cd /usr/lib/rabbitmq/lib/rabbitmq_server-3.6.16/plugins
unzip rabbitmq_delayed_message_exchange-20171215-3.6.x.zip

5、启动插件:

rabbitmq-plugins enable rabbitmq_delayed_message_exchange

6、成功后显示:

The following plugins have been enabled: rabbitmq_delayed_message_exchange

7、重启服务

rabbitmqctl stop
rabbitmq-server restart

8、查看rabbitmq集群状态,检查服务是否正常

rabbitmqctl cluster_status

你可能感兴趣的:(Rabbitmq集群安装插件)