what is RabbitMQ:
RabbitMQ is an open-source message broker software. It accepts messages from producers and delivers them to consumers. It acts like a middleman which can be used to reduce loads and delivery times taken by web application servers.
Follow the below steps to download RabbitMQ server on VM
Login to Rabbitmq:
vagrant ssh rmq01
Cat /etc/hosts
yum update -y
yum install epel-release -y
yum install wget -y
cd /tmp/
Download Pre build package
wget http://packages.erlang-solutions.com/erlang-solutions-2.0-1.noarch.rpm
Code meaning:
Erlang Solutions provides up to date pre-built packages for the latest stable releases. Erlang Solutions provides pre-built binary packages for Ubuntu, Debian, Fedora, CentOS and other operating systems.
yum -y install erlang socat
curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash
yum install rabbitmq-server -y
systemctl status rabbitmq-server
Config Change
sudo sh -c 'echo "[{rabbit, [{loopback_users, []}]}]." > /etc/rabbitmq/rabbitmq.config'
sudo rabbitmqctl add_user test test
sudo rabbitmqctl set_user_tags test administrator Restart RabbitMQ service
systemctl restart rabbitmq-server
Enabling the firewall and allowing port 25672 to access the rabbitmq permanently
systemctl start firewalld
systemctl enable firewalld # firewall-cmd --get-active-zones
firewall-cmd --zone=public --add-port=25672/tcp --permanent
Exit from the root user
Logout from Rabbitmq rmq01.
Next we gonna download Tomcat. Click the link below to install the server