RabbitMQ 的 docker 镜像使用

RabbitMQ 的 docker 镜像使用

1.下载镜像(management版本的才带有web管理界面)

docker pull rabbitmq:3.7.18-management

2.创建容器(监听端口:5672,web管理界面端口:15672)

docker run -p 5672:5672 -p 15672:15672 rabbitmq:3.7.18-management

3.使用默认用户名、密码:guest/guest 登陆

http://localhost:15672

RabbitMQ 启动相关提示信息

...
 node           : rabbit@f6f28fc2ed83
 home dir       : /var/lib/rabbitmq
 config file(s) : /etc/rabbitmq/rabbitmq.conf
 cookie hash    : eCDH3G9Sfgoa5Q2+g1nENw==
 log(s)         : <stdout>
 database dir   : /var/lib/rabbitmq/mnesia/rabbit@f6f28fc2ed83
...
2019-09-26 04:09:41.702 [info] <0.520.0> started TCP listener on [::]:5672
2019-09-26 04:09:41.702 [info] <0.238.0> Running boot step direct_client defined by app rabbit
2019-09-26 04:09:41.724 [info] <0.570.0> Management plugin: HTTP (non-TLS) listener started on port 15672
...

Dockerhub 地址:https://hub.docker.com/_/rabbitmq

posted on 2019-09-25 16:11  cag2050  阅读(1639)  评论(0编辑  收藏  举报

导航