码迷,mamicode.com
首页 > 其他好文 > 详细

docker安装并运行rabbitmq

时间:2019-10-31 13:44:13      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:mic   color   image   conf   name   figure   使用   管理   com   

  拉取镜像:

[mall@VM_0_7_centos ~]$ sudo docker pull rabbitmq:3.7.15
[sudo] password for mall: 
3.7.15: Pulling from library/rabbitmq
5b7339215d1d: Pull complete 
14ca88e9f672: Pull complete 
a31c3b1caad4: Pull complete 
b054a26005b7: Pull complete 
eef17c6cb6cf: Pull complete 
d5a267fdfe2c: Pull complete 
d499647c68af: Pull complete 
ad88e7bd384a: Pull complete 
ae1d871f3f62: Pull complete 
7ceac8eb91d4: Pull complete 
Digest: sha256:78dff08cefc9fef5c9cbaabab99d783d72d37cb7bbb66a08c4f59877ef406c1f
Status: Downloaded newer image for rabbitmq:3.7.15
docker.io/library/rabbitmq:3.7.15

  启动容器中的rabbitmq:

[mall@VM_0_7_centos ~]$ sudo docker run -d --name rabbitmq >   --publish 5671:5671 --publish 5672:5672 --publish 4369:4369 >   --publish 25672:25672 --publish 15671:15671 --publish 15672:15672 >   rabbitmq:3.7.15
da8896bb8f5acc5231c636f58e26109b9c59f9b6cb3bf7359343f5c5093765ce

  进入容器,开启管理功能:

[mall@VM_0_7_centos ~]$ sudo docker exec -it rabbitmq /bin/bash
root@da8896bb8f5a:/# rabbitmq-plugins enable rabbitmq_management  
Enabling plugins on node rabbit@da8896bb8f5a:
rabbitmq_management
The following plugins have been configured:
  rabbitmq_management
  rabbitmq_management_agent
  rabbitmq_web_dispatch
Applying plugin configuration to rabbit@da8896bb8f5a...
The following plugins have been enabled:
  rabbitmq_management
  rabbitmq_management_agent
  rabbitmq_web_dispatch

started 3 plugins.

  打开浏览器,输入本机ip和15672端口:

技术图片

 

   使用默认账户密码guest/guest登陆,后新增用户mall/mall:

技术图片

 

   

  新增虚拟主机:

技术图片

 

 

  配置虚拟主机/mall给mall用户,点击下图红框中的mall进去设置:

技术图片

 

 技术图片

 

docker安装并运行rabbitmq

标签:mic   color   image   conf   name   figure   使用   管理   com   

原文地址:https://www.cnblogs.com/wuxun1997/p/11770376.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!