Two problems encountered by docker in deploying rabbitmq

Time:2021-9-27

1. Background

There are two problems encountered when docker deploys rabbitmq:

Problem 1: an error occurs when accessing the switch

Management API returned status code 500

Question 2: error when accessing channel

Stats in management UI are disabled on this node

2. Solutions

[[email protected] ~]# clear
[[email protected] ~]# 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
[[email protected] ~]# docker exec -it adc292b90f88 /bin/bash
[email protected]:/# cd /etc/rabbitmq/conf.d/
[email protected]:/etc/rabbitmq/conf.d# echo management_agent.disable_metrics_collector = false > management_agent.disable_metrics_collector.conf
[email protected]:/etc/rabbitmq/conf.d# exit
exit
[[email protected] ~]# 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
[[email protected] ~]# docker restart adc292b90f88
adc292b90f88
[[email protected] ~]#

Perfect!

This is the end of this article about the problems encountered in docker deploying rabbitmq. For more information about docker deploying rabbitmq, please search the previous articles of developeppaer or continue to browse the relevant articles below. I hope you will support developeppaer in the future!