How to Install RabbitMQ Server on CentOS 7 Print

  • 0

RabbitMQ is an open-source message broker, which increase the speed of Magento 2's message processing queue. Raise a ticket at your KubeServers client area, this is not a default install.

 

  1. Install socat
    Enable the epel-release repository on the server so that we can install the latest version of socat, a prerequisite for step 2. 

    sudo yum install epel-release
    sudo yum update
    sudo yum install socat


  2. Download erlang
    Next, you need to download the latest version of erlang, the programming language that RabbitMQ is written in, ready for the install of the final server.

    Please check erlang's download page to ensure you're getting the latest version of the software, and replace the wget link with the latest version where necessary.
    https://www.erlang-solutions.com/resources/download.html

    wget https://packages.erlang-solutions.com/erlang/rpm/centos/7/x86_64/esl-erlang_22.0.7-1~centos~7_amd64.rpm
    sudo yum install esl-erlang_22.0.7-1~centos~7_amd64.rpm

     

  3. Download RabbitMQ
    Finally, we're ready to download and install RabbitMQ server.

    As above, make sure you check RabbitMQ's download page and replace the wget link with the latest version available for download.
    https://www.rabbitmq.com/download.html

    sudo 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.7.17/rabbitmq-server-3.7.17-1.el7.noarch.rpm
    sudo yum install rabbitmq-server-3.7.17-1.el7.noarch.rpm

     

  4. Start RabbitMQ Server
    Now that RabbitMQ has been installed, it's time to start the server.

    1. sudo systemctl start rabbitmq-server
      sudo systemctl status rabbitmq-server

    You should see that the status of RabbitMQ is "active"which means it's all running and ready to be configured.

  5. Enable RabbitMQ Web Management
    Last but not least, we need to enable RabbitMQ's web management plugin so that we can easily administer the server, and create a new administrator user to log in to it.

    sudo rabbitmq-plugins enable rabbitmq_management
    sudo chown -R rabbitmq:rabbitmq /var/lib/rabbitmq/
    sudo rabbitmqctl add_user Admin01 ChAngEmE321
    sudo rabbitmqctl set_user_tags Admin01 administrator
    sudo rabbitmqctl set_permissions -p / Admin01 ".*" ".*" ".*"


    Assuming all went well, you should now be able to log in to the web management console at http://Your_Server_IP:15672/ using the above username and password. Make sure you log in and change the password to something more secure.


Was this answer helpful?

« Back