先安装Docker
Centos7离线安装Docker
华为云arm架构安装Docker
Docker安装rabbitMQ
docker pull rabbitmq:3.8.2-management
docker run -p 1883:1883 -p 4369:4369 -p 5671:5671 \
-p 5672:5672 -p 8883:8883 \
-p 15672:15672 -p 25672:25672 \
-p 15675:15675 \
-d --hostname my-rabbitmq \
--name some-rabbitmq \
-e RABBITMQ_DEFAULT_USER=admin \
-e RABBITMQ_DEFAULT_PASS=admin \
rabbitmq:3.8.2-management
docker run -p 15677:15677 -p 5677:5672 -d --hostname my-rabbitmq \
--name some-rabbitmq \
-e RABBITMQ_DEFAULT_USER=admin \
-e RABBITMQ_DEFAULT_PASS=admin \
rabbitmq:3.8.2-management
安装启动mqtt插件
docker exec -it name /bin/bash
rabbitmq-plugins enable rabbitmq_management 管理控制台的默认端口是15672
rabbitmq-plugins enable rabbitmq_mqtt 默认端口mqtt是1883 mqtt://118.24.2.2:1883
rabbitmq-plugins enable rabbitmq_web_mqtt 默认端口websocket是15675 ws://118.24.2.2:15675/ws path是/ws
其他镜像安装
https://github.com/bitnami/bitnami-docker-rabbitmq
docker run --name rabbitmq bitnami/rabbitmq
user/bitnami
|