Bootstrap

docker部署rabbitmq

docker部署rabbitmq

镜像搜索

docker search rabbitmq

下载镜像

docker pull rabbitmq

启动

docker run -d --name rabbitmq --restart always \
-p 15672:15672  \
-p 5672:5672  \
rabbitmq

后台插件安装

docker exec -it rabbitmq /bin/bash
rabbitmq-plugins enable rabbitmq_management

重置队列

docker exec -it rabbitmq /bin/sh
rabbitmqctl stop_app
rabbitmqctl reset
rabbitmqctl start_app

交换机报错

Management API returned status code 500

docker exec -it rabbitmq /bin/bash

#进入容器

cd /etc/rabbitmq/conf.d/
echo management_agent.disable_metrics_collector = false > management_agent.disable_metrics_collector.conf
exit

#重启容器

docker restart rabbitmq

访问

http://ip:15672/

;