rabbitmq安装延迟插件步骤以及踩坑记录
安装延迟插件步骤:
1.下载延迟插件:rabbitmq_delayed_message_exchange-0.0.1.ez
地址:
https://github.com/rabbitmq/rabbitmq-delayed-message-exchange
http://www.rabbitmq.com/community-plugins.html
https://bintray.com/rabbitmq/community-plugins/rabbitmq_delayed_message_exchange/v3.6.x#files/
2.将插件放到文件目录下:
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins
3.(重中之重)执行命令:
rabbitmq-server -detached
4.启用插件
rabbitmq-plugins enable rabbitmq_delayed_message_exchange
踩坑记录:
没有执行第三步rabbitmq-server -detached,导致启动报错。
怎么进行错误排查?
1.查看status
/etc/init.d/rabbitmq-server status
2.查看日志文件
cat /var/log/rabbitmq/startup_err
cat /var/log/rabbitmq/rabbit@localhost.log
3.耐心百度