安装rabbitMQ delayed-messaged

由于一些原因,消息需要延迟发送给消费者,可以用delayed-messaged插件

在 /usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins目录下

# wget https://dl.bintray.com/rabbitmq/community-plugins/rabbitmq_delayed_message_exchange-0.0.1.ez

下载完之后,需要开启插件

# rabbitmq-plugins enable rabbitmq_delayed_message_exchange

插件使用方法:http://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq/

原文地址:https://www.cnblogs.com/mysic/p/6073261.html