在Docker Hub上查询可用版本
下载安装并运行3.9.13版本
(base) ArchitectRoad: joey$docker pull rabbitmq:3.9.13
(base) ArchitectRoad: joey$docker run -d -p 15672:15672 -p 5672:5672 --name rabbitmq rabbitmq:3.9.13
2e016b16fc7678051d9691e982f726dc515ca843f2e3d5e5894f2afb8b7a7453
(base) ArchitectRoad: joey$docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2e016b16fc76 rabbitmq:3.9.13 "docker-entrypoint.s…" 4 seconds ago Up 3 seconds 4369/tcp, 0.0.0.0:5672->5672/tcp, 5671/tcp, 15691-15692/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp rabbitmq
88c73b87e1e0 redis:6.2.6 "docker-entrypoint.s…" 9 minutes ago Up 9 minutes 0.0.0.0:6379->6379/tcp redis
b43a801ca528 mysql:8.0 "docker-entrypoint.s…" 26 minutes ago Up 26 minutes 0.0.0.0:3306->3306/tcp, 33060/tcp
启用插件
root@2e016b16fc76:/# rabbitmq-plugins enable rabbitmq_management
Enabling plugins on node rabbit@2e016b16fc76:
rabbitmq_management
The following plugins have been configured:
rabbitmq_management
rabbitmq_management_agent
rabbitmq_prometheus
rabbitmq_web_dispatch
Applying plugin configuration to rabbit@2e016b16fc76...
The following plugins have been enabled:
rabbitmq_management
started 1 plugins.
访问管理界面