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
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
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.
Now you should be able to access the management console in the following URL.
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.
Installing RabbitMQ Server
- Add the following line to your /etc/apt/sources.list file
deb http://www.rabbitmq.com/debian/ testing main
- 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
- Run apt-get update.
- Install packages for RabitMQ server, you can execute the following command for this.
sudo apt-get install rabbitmq-server
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
sudo rabbitmqctl add_user admin admin
sudo rabbitmqctl set_user_tags admin administrator
sudo rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
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.
0 comments:
Post a Comment