echo 'deb http://www.rabbitmq.com/debian/ testing main' | sudo tee /etc/apt/sources.list.d/rabbitmq.list
wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -
sudo apt-get update sudo apt-get install rabbitmq-server
Enabling the Management Console
sudo rabbitmq-plugins enable rabbitmq_management
http://[your droplet's IP]:15672/
The default username and password are both set “guest” for the log in.
RabbitMQ MQTT Adapter
sudo rabbitmq-plugins enable rabbitmq_mqtt
Managing on Ubuntu
# To start the service: service rabbitmq-server start # To stop the service: service rabbitmq-server stop # To restart the service: service rabbitmq-server restart # To check the status: service rabbitmq-server status
add new user
rabbitmqctl add_user test test rabbitmqctl set_user_tags test administrator rabbitmqctl set_permissions -p / test ".*" ".*" ".*"
delete guest
rabbitmqctl delete_user guest
References
https://www.rabbitmq.com/install-debian.html
https://www.digitalocean.com/community/tutorials/how-to-install-and-manage-rabbitmq
https://www.rabbitmq.com/plugins.html
https://www.rabbitmq.com/man/rabbitmqctl.1.man.html#add_user
https://stackoverflow.com/questions/22850546/cant-access-rabbitmq-web-management-interface-after-fresh-install