How to Install RabbitMQ on Debian Latest

RabbitMQ is an open-source message broker software that allows different applications to communicate with each other using messaging protocols. This tutorial will guide you through the process of installing RabbitMQ on Debian Latest.

Prerequisites

Before you begin the installation process for RabbitMQ, ensure that you have the following:

Step 1: Update the system

To update your Debian system, you'll run the following command:

sudo apt update -y && sudo apt upgrade -y

Step 2: Install Erlang

RabbitMQ is built on the Erlang programming language. Hence, you need to install the Erlang package to your Debian system. Run the following command:

sudo apt install erlang

After executing the command, the system will prompt you to confirm the installation. Type y and press Enter to continue.

Step 3: Add RabbitMQ repository

By default, RabbitMQ is not included in the Debian package archives. Thus, you need to add its official repository. Execute the following command:

wget -O- https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey | sudo apt-key add -
echo "deb https://packagecloud.io/rabbitmq/rabbitmq-server/debian buster main" | sudo tee /etc/apt/sources.list.d/rabbitmq.list

Step 4: Install RabbitMQ

With the RabbitMQ repository added to your system, you can now install the package via the package manager. Run the following command:

sudo apt update -y && sudo apt install rabbitmq-server -y

After the installation process is complete, RabbitMQ service should start automatically.

Step 5: Verify the installation

You can check the status of the RabbitMQ service with the following command:

sudo systemctl status rabbitmq-server

If the service is running, you'll see a message showing that it's active(but if it's not running, you can start it using sudo systemctl start rabbitmq-server).

To verify that you have the RabbitMQ service installed properly, you'll access its management console via your browser by going to http://your-server-ip:15672/. Here, you can interact with the broker and perform tasks such as creating users, virtual hosts, and setting permissions.

Conclusion

In this tutorial, you learned how to install RabbitMQ on Debian Latest. You should now be able to run a RabbitMQ broker and communicate between different applications using messaging protocols.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!