RabbitMQ is lightweight and popular open source message broker which supports multiple messaging protocols that has been widely deployed by many enterprises… This brief tutorial is going to show students and new users how to easily install RabbitMQ with Erlang/OTP support on Ubuntu 16.04 / 17.10 and 18.04.
RabbitMQ supports Advanced Message Queuing Protocol, multiple messaging protocols delivery acknowledgement, flexible routing and many more … Many enterprises and businesses are using this advanced opensource application to manage their mail processes…
If you haven’t installed it before, the steps below is a great place to start..
Step 1: Install Erlang/OTP
RabbitMQ needs Erlang/OTP to run. However, Erlang/OTP packages in standard Debian and Ubuntu also can be quite outdated. Consider installing a newer version, such as 184.108.40.206. To install the latest version of Erlang, add the repository below
sudo sh -c 'echo "deb https://packages.erlang-solutions.com/ubuntu $(lsb_release -sc) contrib" >> /etc/apt/sources.list.d/erlang.list'
After adding the repository above, run the commands below to add the repository key
wget https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc sudo apt-key add erlang_solutions.asc
After that, run the commands below to install Erland/OTP
sudo apt update sudo apt install erlang
Step 2: Add RabbitMQ Repository to Ubuntu 16.04 / 17.10
To install RabbitMQ on Ubuntu 16.04 and 17.10 easily, add its repository… to do that run the commands below… At the time of this writing the repository below didn’t support Ubuntu 18.04… After 18.04 is release, the commands below should work on it as well…
sudo sh -c 'echo "deb https://dl.bintray.com/rabbitmq/debian $(lsb_release -sc) main" >> /etc/apt/sources.list.d/rabbitmq.list'
After running the commands above, run the commands below to add the repository key to Ubuntu…
wget -O- https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc | sudo apt-key add - wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -
After adding RabbitMQ repository and key, run the commands below to install RabbitMQ package
sudo apt update sudo apt install rabbitmq-server
After installing, the commands below can used to stop, start and enable RabbitMQ to always start up when the server boots.
sudo systemctl enable rabbitmq-server sudo systemctl start rabbitmq-server sudo systemctl stop rabbitmq-server
Step 3: Enable RabbitMQ Web Console
RabbitMQ also provides and web management console for easy management… To enable it, run the commands below
sudo rabbitmq-plugins enable rabbitmq_management
After that, open your browser and browse to the server name or IP address followed by port # 15672
You should see RabbitMQ web management console to logon… the default username and password is guest.
Logon and begin configuring your server
On Ubuntu 18.04, you’ll have to manually install Erlang/OTP package from the link below:
RabbitMQ Deb packages from the link below:
After 18.04 is fully released, the repositories above should work and allow you to easily install…
You may also like the post below: