rabbitmq 开启mqtt协议
Last updated on November 20, 2024 am
🧙 Questions
docker中的rabbitmq开启mqtt协议
☄️ Ideas
mqtt端口号
1883
: tcp协议,tcp://118.24.2.2:188315675
: ws协议,ws://118.24.2.2:15675/ws
docker命令
重启docker,放开端口号
sudo docker run \
-d \
--name ispong-rabbitmq \
--privileged=true \
--restart=always \
-p 30180:5672 \
-p 30181:15672 \
-p 30182:1883 \
-p 30183:15675 \
-e RABBITMQ_DEFAULT_USER=ispong \
-e RABBITMQ_DEFAULT_PASS=ispong123 \
rabbitmq:3-management
开启mqtt
docker exec ispong-rabbitmq rabbitmq-plugins enable rabbitmq_mqtt
docker exec ispong-rabbitmq rabbitmq-plugins enable rabbitmq_web_mqtt
🔗 Links
rabbitmq 开启mqtt协议
https://ispong.isxcode.com/spring/rabbitmq/rabbitmq 开启mqtt协议/