Note: Before installation, hostname/IP must be configure properly in /etc/hosts or resolvable through DNS.

  • Install RabbitMQ
sudo apt-get install rabbitmq-server`

Check RabbitMQ after installation

sudo service rabbitmq-server status

Enable RabbitMQ Management Plugin, this give you the web interface

sudo rabbitmq-plugins enable rabbitmq_management

Accessing RabbitMQ Web Console

http://<hostname/IP>:15672

Create RabbitMQ users

sudo rabbitmqctl add_user <username> <password>

Set user as administrator

sudo rabbitmqctl set_user_tags <username> administrator

Note: RabbitMQ come with default guest account

Username: guest  
Password: guest  

You may want to disable/delete this account

Create RabbitMQ virtual host

sudo rabbitmqctl add_vhost <virtual host name>

Note: RabbitMQ come with default virtual host “/”, and guest account has full access

Grant user full permissions to new vhost

sudo rabbitmqctl set_permissions -p <virtual host name> <username> ".*" ".*" ".*"