Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3759909
  • 博文数量: 880
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 6155
  • 用 户 组: 普通用户
  • 注册时间: 2016-11-11 09:12
个人简介

To be a better coder

文章分类

全部博文(880)

文章存档

2022年(5)

2021年(60)

2020年(175)

2019年(207)

2018年(210)

2017年(142)

2016年(81)

分类: LINUX

2020-01-19 17:47:00

[root@localhost /]#
[root@localhost /]# docker pull daocloud.io/library/rabbitmq:3.7.4
3.7.4: Pulling from library/rabbitmq
f2aa67a397c4: Pull complete
f062288ad968: Pull complete
8b9469379b84: Pull complete
5b66af38c756: Pull complete
bc632ec8d54c: Pull complete
e17b0fb78cd2: Pull complete
3b01aa133390: Pull complete
42a08f0de532: Pull complete
54310da88580: Pull complete
d8c0beaf52d6: Pull complete
7622207aa3f2: Pull complete
b8ff1b0c6268: Pull complete
Digest: sha256:3e5065721ab3a1f2ae3ab2ec2213420050d445e18fc8dc62803e9c30330d64fe
Status: Downloaded newer image for daocloud.io/library/rabbitmq:3.7.4
[root@localhost /]#
[root@localhost /]# docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                      PORTS               NAMES
76a515f71c9a        busybox             "sh"                14 minutes ago      Exited (0) 13 minutes ago                       epic_vaughan
59ef5c4b3a84        busybox             "sh"                26 minutes ago      Exited (0) 26 minutes ago                       nifty_perlman
[root@localhost /]#
[root@localhost /]#
[root@localhost /]# docker images
REPOSITORY                     TAG                 IMAGE ID            CREATED             SIZE
busybox                        latest              6d5fcfe5ff17        3 weeks ago         1.22MB
daocloud.io/library/rabbitmq   3.7.4               cae5b74b77de        20 months ago       127MB
[root@localhost /]#
[root@localhost /]# docker run -d --hostname my-rabbit --name some-rabbit -p 15672:15672 -p 5672:5672 -p 1883:1883 -p 15675:15675 daocloud.io/library/rabbitmq:3.7.4
f418f765844e945a5a5602e143e12baa8b95abb5237b4ba9d28ae64b852979cc
[root@localhost /]#
[root@localhost /]#
[root@localhost /]# docker ps -a
CONTAINER ID        IMAGE                                COMMAND                  CREATED             STATUS                      PORTS                                                                                                                               NAMES
f418f765844e        daocloud.io/library/rabbitmq:3.7.4   "docker-entrypoint.s…"   6 seconds ago       Up 5 seconds                4369/tcp, 0.0.0.0:1883->1883/tcp, 0.0.0.0:5672->5672/tcp, 0.0.0.0:15672->15672/tcp, 5671/tcp, 0.0.0.0:15675->15675/tcp, 25672/tcp   some-rabbit
76a515f71c9a        busybox                              "sh"                     18 minutes ago      Exited (0) 17 minutes ago                                                                                                                                       epic_vaughan
59ef5c4b3a84        busybox                              "sh"                     30 minutes ago      Exited (0) 30 minutes ago                                                                                                                                       nifty_perlman
[root@localhost /]#
[root@localhost /]# iptables  -P INPUT ACCEPT
[root@localhost /]# docker exec f418f765844e rabbitmq-plugins enable rabbitmq_management
The following plugins have been configured:
  rabbitmq_management
  rabbitmq_management_agent
  rabbitmq_web_dispatch
Applying plugin configuration to rabbit@my-rabbit...
The following plugins have been enabled:
  rabbitmq_management
  rabbitmq_management_agent
  rabbitmq_web_dispatch

started 3 plugins.
[root@localhost /]# docker exec f418f765844e rabbitmq-plugins enable rabbitmq_mqtt
The following plugins have been configured:
  rabbitmq_management
  rabbitmq_management_agent
  rabbitmq_mqtt
  rabbitmq_web_dispatch
Applying plugin configuration to rabbit@my-rabbit...
The following plugins have been enabled:
  rabbitmq_mqtt

started 1 plugins.
[root@localhost /]# docker exec f418f765844e rabbitmq-plugins enable rabbitmq_web_mqtt
The following plugins have been configured:
  rabbitmq_management
  rabbitmq_management_agent
  rabbitmq_mqtt
  rabbitmq_web_dispatch
  rabbitmq_web_mqtt
Applying plugin configuration to rabbit@my-rabbit...
The following plugins have been enabled:
  rabbitmq_web_mqtt

started 1 plugins.
[root@localhost /]#
阅读(12501) | 评论(0) | 转发(0) |
0

上一篇:helm创建个chart

下一篇:MQTT

给主人留下些什么吧!~~