Cheatsheet: RabbitMQ
My personal cheatsheet for RabbitMQ.
Install RabbitMQ Server
Follow these instructions.
Enable RabbitMQ Management Dashboard
Follow these instructions.
Enable MQTT
sudo rabbitmq-plugins enable rabbitmq_mqtt
# username and password are both "mqtt-test"
sudo rabbitmqctl add_user mqtt-test mqtt-test
sudo rabbitmqctl set_permissions -p / mqtt-test ".*" ".*" ".*"
sudo rabbitmqctl set_user_tags mqtt-test management
Things You Should Know
- RabbitMQ supports MQTT 3.1.1.
- RabbitMQ does not support QoS2 subscriptions and QoS2 publish will be downgraded to QoS1.
- When an MQTT client provides no login credentials, the plugin uses the
guest
account by default. Which will not allow non-localhost
/ remote connections.