赞
踩
首先进入RabbitMQ 官网
http://www.rabbitmq.com/download.html
找到 Docker image 并进入
这里是最新版本 3.7.7-management,找到你需要安装的版本, -management 表示有管理界面的,可以浏览器访问。
接来下docker安装,我这里装的 3.7.3-management:
docker run -d --hostname my-rabbit -p 5672:5672 -p 15672:15672 rabbitmq:3.7.3-management
- [root@localhost ~]# docker run -d --hostname my-rabbit -p 5672:5672 -p 15672:15672 rabbitmq:3.7.3-management
- Unable to find image 'rabbitmq:3.7.3-management' locally
- Trying to pull repository docker.io/library/rabbitmq ...
- 3.7.3-management: Pulling from docker.io/library/rabbitmq
- 8176e34d5d92: Pull complete
- 26aa5c2fc28c: Pull complete
- 5a6866d83ad7: Pull complete
- 424ad5823c0c: Pull complete
- d23f7e6945ef: Pull complete
- 2983462f8b69: Pull complete
- 967a9b528d24: Pull complete
- 8d0036e245ae: Pull complete
- 5d5bde65188b: Pull complete
- d93abbe9c23b: Pull complete
- 341f84bd147c: Pull complete
- 8031e5e184d9: Pull complete
- 1b523a6d0598: Pull complete
- aeb395b80fc8: Pull complete
- Digest: sha256:0f681f18d80b2979596e8b262d06cacf7948e924d7f3a67e89be5fdea82cd116
- Status: Downloaded newer image for docker.io/rabbitmq:3.7.3-management
- 5d3bba75589b4d2dd9db569119beed6e4e0a2d40d7e3300720abd69d0adbd433
- [root@localhost ~]#
docker ps 看下
- [root@localhost ~]# docker ps
- CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
- 5d3bba75589b rabbitmq:3.7.3-management "docker-entrypoint..." About a minute ago Up About a minute 4369/tcp, 5671/tcp, 0.0.0.0:5672->5672/tcp, 15671/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp kickass_lamport
- [root@localhost ~]#
浏览器访问看下:
用户名/密码: guest/guest
OK,RabbitMQ安装完成。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。