ps -ef | grep rabbit
如果存在多个rabbitmq版本,通过命令查看
service rabbitmq-server status
切换到RabbitMQ的安装目录的plugins目录,我的是在/usr/lib/rabbitmq/lib/rabbitmq_server-3.7.7/plugins
wget https://dl.bintray.com/rabbitmq/community-plugins/3.7.x/rabbitmq_delayed_message_exchange/rabbitmq_delayed_message_exchange-20171201-3.7.x.zip
解压(没有unzip的需要先安装 yum install unzip)
unzip -zxvf rabbitmq_delayed_message_exchange-20171201-3.7.x.zip
切换到sbin目录下面,启用该插件
./rabbitmq-plugins enable rabbitmq_delayed_message_exchange
重启服务
service rabbitmq-server restart