how to install RabbitMQ in centos

Update your system’s package index:
sqlsudo yum update
Install the Erlang programming language, which is a dependency of RabbitMQ:
sudo yum install erlang
Download the RabbitMQ installation package:
rubywget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.9.5/rabbitmq-server-3.9.5-1.el7.noarch.rpm
Replace the URL above with the download link for the version of RabbitMQ you want to install.
Install the RabbitMQ package:
rubysudo rpm --import https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc sudo yum install rabbitmq-server-3.9.5-1.el7.noarch.rpm
Start the RabbitMQ server:
sqlsudo systemctl start rabbitmq-server
Enable RabbitMQ to start on boot:
bashsudo systemctl enable rabbitmq-server
Check the status of the RabbitMQ service:
luasudo systemctl status rabbitmq-server
The output should show that the service is active and running.
You can now use RabbitMQ as a messaging broker for your applications. To manage RabbitMQ, you can use the RabbitMQ web console or command-line tools such as rabbitmqctl
. The web console is available at http://localhost:15672
by default.