how to install RabbitMQ in centos

  1. Update your system’s package index:

    sql
    sudo yum update
  2. Install the Erlang programming language, which is a dependency of RabbitMQ:

    sudo yum install erlang
  3. Download the RabbitMQ installation package:

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

  4. Install the RabbitMQ package:

    ruby
    sudo 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
  5. Start the RabbitMQ server:

    sql
    sudo systemctl start rabbitmq-server
  6. Enable RabbitMQ to start on boot:

    bash
    sudo systemctl enable rabbitmq-server
  7. Check the status of the RabbitMQ service:

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

Scroll to Top