Docker部署rabbitmq遇到的兩個問題
1.背景
Docker部署rabbitmq遇到的如下兩個問題
問題一:訪問交換機時報錯
Management API returned status code 500
問題二:訪問channel時報錯
Stats in management UI are disabled on this node
2.解決方案
[root@ldp03host ~]# clear
[root@ldp03host ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
adc292b90f88 rabbitmq “docker-entrypoint.s…” 6 days ago Up 18 hours 4369/tcp, 0.0.0.0:5672->5672/tcp, :::5672->5672/tcp, 5671/tcp, 15691-15692/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp, :::15672->15672/tcp rabbit
[root@ldp03host ~]# docker exec -it adc292b90f88 /bin/bash
root@my-rabbit:/# cd /etc/rabbitmq/conf.d/
root@my-rabbit:/etc/rabbitmq/conf.d# echo management_agent.disable_metrics_collector = false > management_agent.disable_metrics_collector.conf
root@my-rabbit:/etc/rabbitmq/conf.d# exit
exit
[root@ldp03host ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
adc292b90f88 rabbitmq “docker-entrypoint.s…” 6 days ago Up 19 hours 4369/tcp, 0.0.0.0:5672->5672/tcp, :::5672->5672/tcp, 5671/tcp, 15691-15692/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp, :::15672->15672/tcp rabbit
[root@ldp03host ~]# docker restart adc292b90f88
adc292b90f88
[root@ldp03host ~]#
完美!
到此這篇關於Docker部署rabbitmq遇到的問題的文章就介紹到這瞭,更多相關Docker部署rabbitmq內容請搜索WalkonNet以前的文章或繼續瀏覽下面的相關文章希望大傢以後多多支持WalkonNet!
推薦閱讀:
- Docker搭建RabbitMq的普通集群和鏡像集群的詳細操作
- springcloud安裝rabbitmq並配置延遲隊列插件的過程詳解
- Docker常用命令Study03詳解
- Docker容器使用方法詳解
- docker安裝redis掛載容器卷同時開啟持久化