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.
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
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