RabbitMQ Installation

In this article, I’m going to cover RabbitMQ installation on CentOS 7.

RabbitMQ is a message Brocker which is used to forward messages from Producer to Consumer. And before Consumer picks the message it is stored in a queue.

In the example below queue is called “hello”

At my project, I had to use vCloud Director as a Producer and vRealize Orchestrator as Consumer of the messages (in later articles I will cover it.

For installation of RabbitMQ we need to install Erlang first.

wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
sudo rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
yum install erlang
rpm --import https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.2/rabbitmq-server-3.8.2-1.el7.noarch.rpm
yum install rabbitmq-server-3.8.2-1.el7.noarch.rpm
systemctl start rabbitmq-server
systemctl enable rabbitmq-server
rabbitmq-plugins enable rabbitmq_management
chown rabbitmq:rabbitmq /var/lib/rabbitmq/
rabbitmqctl add_user mqadmin passw0rd
rabbitmqctl set_user_tags mqadmin administrator
rabbitmqctl set_permissions -p / mqadmin ".*" ".*" ".*"
systemctl restart rabbitmq-server

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.