Last Updated: February 25, 2016
·
943
· vidyasagar

RabbitMQ Installation on Ubuntu

  1. Get the DEB package and add it to sources.list

    echo "deb http://www.rabbitmq.com/debian/ testing main" > /etc/apt/sources.list.d/rabbitmq.list
  2. Downloading key file

    wget http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
  3. Adding key to apt-get

    sudo apt-key add rabbitmq-signing-key-public.asc
  4. Updating packages

    apt-get update
  5. Installing RabbitMQ Server

    apt-get install rabbitmq-server -y
  6. Starting RabbitMQ Server

    service rabbitmq-server start
  7. Enabling Plugins of RabbitMQ

    rabbitmq-plugins enable rabbitmq_management
  8. Adding User: Make sure you change the word "password" to the actual password you want to login with

    rabbitmqctl add_user admin password
    
    rabbitmqctl set_user_tags admin administrator
  9. Setting Permissions to added user

    rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
  10. Deleting guest user

    rabbitmqctl delete_user guest
  11. Restarting RabbitMQ Server

    service rabbitmq-server restart
  12. Usage:

The default port for the admin interface is 15672. You can use the management interface to finish off your configuration such as adding exchanges, queues, users and vhosts.