Monday, July 20, 2015

Hi All, In this post I'll describe how you can install RabbitMQ sever and Management console in the easy way using apt-get :). You can follow the following instructions to get this done.

Installing RabbitMQ Server
  1. Add the following line to your /etc/apt/sources.list file
    deb http://www.rabbitmq.com/debian/ testing main
  2. To avoid warnings about unsigned packages, add repo public key to your trusted key list using apt-key: execute following commads,
    wget https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
    sudo apt-key add rabbitmq-signing-key-public.asc

  3. Run apt-get update.
  1. Install packages for RabitMQ server, you can execute the following command for this.
    sudo apt-get install rabbitmq-server
Note : After Installing RabbitMQ some default configuration files may not exist by default so you need to create these files manually in relevant locations if you need to change default settings of RabbitMQ.
For e,g.: If rabbitmq-env.conf is not available create the file in /etc/rabbitmq/rabbitmq-env.conf and you can add the parameters you need. In the same way you also can add /etc/rabbitmq/rabbitmq.config file as well, in this you can define system parameters which will be used by RabbitMQ. For now we will continue with the default settings. 

Install the Management interface

The management plugin is included in the RabbitMQ distribution. To enable it, use rabbitmq-plugins execute the following command

sudo rabbitmq-plugins enable rabbitmq_management

Now lets create a new user and Grant Permission to the suer to enter the management console and perform queue operations. For this execute the followig commands It will create a user named admin with password admin.

sudo rabbitmqctl add_user admin admin
sudo rabbitmqctl set_user_tags admin administrator
sudo rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"

Now you should be able to access the management console in the following URL.

http://192.168.48.240:15672/#/




It is also recommend to setup OS level parameters to tuneup RabbitMQ. e.g: ulimits etc. But for testing purposes above configurations will do.


Now You can navigate to the Queue section of the management console and create a new Queue.

Categories: ,

0 comments:

Post a Comment

Subscribe to RSS Feed Follow me on Twitter!