Skip to content
Follow
Ubuntu Linux

How to Install RabbitMQ with Erlang/OTP on Ubuntu Linux

Richard
Written by
Richard
Mar 21, 2018 Updated Jul 15, 2026 2 min read
How to Display Seconds on Ubuntu Top Menu Clock
How to Display Seconds on Ubuntu Top Menu Clock

Installing RabbitMQ on Ubuntu Linux sets up a reliable message broker that helps different applications talk to each other.

RabbitMQ is a message queueing system. It helps applications communicate without needing to talk at the exact same time, which is great for tasks that don’t need to happen instantly.

This system ensures messages get delivered even if an application is offline for a bit. This makes it perfect for modern applications and handling background jobs.

This guide shows you how to install RabbitMQ and its requirement, Erlang/OTP, on Ubuntu 20.04 LTS. After you finish, you will have a working RabbitMQ ready to use through a web dashboard.

⚡ Quick Answer

Install Erlang/OTP by adding its repository, importing the key, and running `sudo apt install erlang`. Then, add the RabbitMQ repository, import its key, and run `sudo apt install rabbitmq-server`. Finally, enable the management plugin with `sudo rabbitmq-plugins enable rabbitmq_management`.

Install Erlang/OTP

To install RabbitMQ on Ubuntu, you first need to install Erlang/OTP, which serves as its base system. A safe source for Erlang will be added, and then your system’s tools will be used to install it.

🐧Bash / Shell
sudo sh -c 'echo "deb https://packages.erlang-solutions.com/ubuntu $(lsb_release -sc) contrib" >> /etc/apt/sources.list.d/erlang.list'

Next, add the security key so your system trusts the new files.

💻Code
wget https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc
sudo apt-key add erlang_solutions.asc

Finally, install the Erlang software.

🐧Bash / Shell
sudo apt update
sudo apt install erlang
RabbitMQ Ubuntu install
rabbitMQ Ubuntu install

Add the RabbitMQ Repository

After setting up Erlang, the next step to install RabbitMQ on Ubuntu is to add the official RabbitMQ software source. This allows your computer to find and install RabbitMQ, along with its necessary security key.

🐧Bash / Shell
sudo sh -c 'echo "deb https://dl.bintray.com/rabbitmq/debian $(lsb_release -sc) main" >> /etc/apt/sources.list.d/rabbitmq.list'

Add the security key for RabbitMQ.

💻Code
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 -

Now, install the RabbitMQ package itself.

🐧Bash / Shell
sudo apt update
sudo apt install rabbitmq-server

Set RabbitMQ to start automatically whenever your computer boots up.

🐧Bash / Shell
sudo systemctl enable rabbitmq-server
sudo systemctl start rabbitmq-server
sudo systemctl stop rabbitmq-server

Enable the Web Management Console

After installing RabbitMQ on Ubuntu, you can enable its helpful web dashboard for checking and managing your message system. Run a command to add the tool, then open it in your browser to get started.

🐧Bash / Shell
sudo rabbitmq-plugins enable rabbitmq_management

Open your web browser and type your server’s address followed by the port 15672. For example: http://your-server-ip:15672

A login screen will appear. Use the default credentials:

  • Username: guest
  • Password: guest
RabbitMQ Ubuntu
rabbitMQ Ubuntu install 1

For users of Ubuntu 18.04, manual file downloads might be necessary from these links: https://packages.erlang-solutions.com/erlang/ and https://www.rabbitmq.com/install-debian.html.

Summary

This guide prepared your Ubuntu server by installing the Erlang base, adding the RabbitMQ software repository, and enabling a user-friendly web dashboard. You are now ready to start sending messages between your applications.









Does RabbitMQ use Erlang OTP?

RabbitMQ is written in Erlang and shares its key features of scalability, reliability, and fault-tolerance. At Erlang Solutions, we are world-leaders in Erlang/OTP & Elixir development and consultancy.

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Install Windows Subsystem for Linux (WSL) on Windows 11
Ubuntu Linux How to Install Windows Subsystem for Linux (WSL) on Windows 11
How to Allow Remote Connections to MySQL Database Server
Ubuntu Linux How to Allow Remote Connections to MySQL Database Server
How to Add a User to Sudoers in Ubuntu
Ubuntu Linux How to Add a User to Sudoers in Ubuntu
How to Install KDE Desktop on Ubuntu 24.04
Ubuntu Linux How to Install KDE Desktop on Ubuntu 24.04

0 Comments

  • thanks! this was clear, and even better than that on the rabbitMQ website

    Reply
  • try install erlang:
    The following packages have unmet dependencies:
    erlang : Depends: erlang-diameter but it is not going to be installed
    Depends: erlang-eldap but it is not going to be installed
    Depends: erlang-ftp but it is not going to be installed
    Depends: erlang-tftp but it is not going to be installed
    Recommends: erlang-jinterface but it is not going to be installed
    Recommends: erlang-ic-java but it is not going to be installed
    Recommends: erlang-mode but it is not going to be installed
    Recommends: erlang-src but it is not going to be installed
    Recommends: erlang-examples but it is not going to be installed
    esl-erlang : Depends: libwxbase2.8-0 but it is not installable or
    libwxbase3.0-0 but it is not installable or
    libwxbase3.0-0v5 but it is not going to be installed
    Depends: libwxgtk2.8-0 but it is not installable or
    libwxgtk3.0-0 but it is not installable or
    libwxgtk3.0-0v5 but it is not going to be installed
    Depends: libsctp1 but it is not going to be installed
    Recommends: erlang-mode but it is not going to be installed
    libssl-dev : Depends: libssl1.0.0 (= 1.0.2g-1ubuntu4.13) but 1.0.2g-1ubuntu4.12 is to be installed
    Recommends: libssl-doc but it is not going to be installed
    E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).

    Reply
  • How to install ssl in rabbitmq mqtt?

    Reply
  • Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    rabbitmq-server is already the newest version (3.7.10-1).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue? [Y/n] Y
    Setting up rabbitmq-server (3.7.10-1) …
    dpkg: error processing package rabbitmq-server (–configure):
    installed rabbitmq-server package post-installation script subprocess returned error exit status 1
    Errors were encountered while processing:
    rabbitmq-server
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    Reply
  • Jonathan

    Well after spending 3 hours trying to get Rabbit installed this is my savior. Thank you!!

    Reply
  • Great Article..
    Easy & simple steps to install RabbitMQ.

    Reply

Leave a Comment

Your email address will not be published. Required fields are marked *