docker部署rabbitmq,解决Stats in management UI are disabled on this node

docker部署rabbitmq

    • docker创建rabbitmq
    • 启动 rabbitmq_management
    • 访问控制台出错 Stats in management UI are disabled on this node
    • 访问正常

docker创建rabbitmq

docker run -d --restart=always -p 15672:15672 -p 5672:5672
-e RABBITMQ_DEFAULT_VHOST=my_vhost
-e RABBITMQ_DEFAULT_USER=admin
-e RABBITMQ_DEFAULT_PASS=admin
–hostname myRabbit
–name rabbitmq \

在这里插入图片描述

启动 rabbitmq_management

方法一:
docker exec -it rabbitmq /bin/bash
root@myRabbit:/# rabbitmq-plugins enable rabbitmq_management
方法二::
docker exec -it rabbitmq rabbitmq-plugins enable rabbitmq_management

访问控制台出错 Stats in management UI are disabled on this node

点击channels 出现 Stats in management UI are disabled on this node
修改配置
docker exec -it rabbitmq /bin/bash
root@myRabbit:/# sed -i ‘s/true/false/g’ /etc/rabbitmq/conf.d/management_agent.disable_metrics_collector.conf
重启容器
docker restart rabbitmq
在这里插入图片描述

访问正常

docker部署rabbitmq,解决Stats in management UI are disabled on this node_第1张图片

你可能感兴趣的:(rabbitmq,docker)