1、首先下载插件
rabbitmq_delayed_message_exchange-3.8.0.ez
2、将插件放在以下目录
/usr/lib/rabbitmq/lib/rabbitmq_server-3.8.6/plugins
3、执行以下命令
rabbitmq-plugins enable rabbitmq_delayed_message_exchange
4、重启rabbitmq
systemctl stop rabbitmq-server
systemctl start rabbitmq-server