In this guide we will explore how to install the latest release of RabbitMQ in Ubuntu 22.04 Server or Workstation
RabbitMQ is an open source message broker software that implements the Advanced Message Queuing Protocol (AMQP). RabbitMQ works by receiving messages from publishers (applications that publish them) and routes them to consumers (applications that process them).
Related Content:
- How to install RabbitMQ in Ubuntu 20.04
- How to install Erlang on FreeBSD 13
- How to install RabbitMQ in FreeBSD 13
- How to install Erlang on Ubuntu 20.04
- How to install Erlang on OpenSUSE Leap 15.3
- How to install RabbitMQ in OpenSUSE Leap 15.3
- How to install Erlang on Fedora 35
- How to install RabbitMQ in Fedora 35
- How to install Erlang on Rocky Linux/Alma Linux/CentOS 8
- How To Install and Enable EPEL Repository on Rocky Linux/Centos 8
Prerequisites
To follow along, ensure you have the following
- An updated Ubuntu Server/workstation
- Access to the internet
- Root access or user with Sudo access
Updating the system
Before proceeding, ensure that the server packages are up to date. Use this command to achieve that:
|
|
Installing Erlang
The RabbitMQ package is found in the default OpenSUSE repos. Install it using this command:
|
|
Installing Rabbitmq
RabbitMQ can be found in the default Ubuntu repos. Install using this command:
|
|
Package details can be queried using apt-cache
command with the option policy
.
|
|
Starting and enabling rabbitmq-server service
Start the service
|
|
Then check the status to confirm its running
|
|
Now you can enable it on boot
|
|
You can get status of rabbitmq internals:
|
|
6. Optional: Enabling RabbitMQ Dashboard
Use the rabbitmq-plugins enable
command to enable the management dashboard:
|
|
The web service is up listening on port 15672
|
|
Access it by opening the URL http://[server IP]:15672
like http://127.0.0.1:15672
By default, the guest user exists and can connect only from localhost
. You can log in with this user locally with the password “guest”
To be able to login on the network, create an admin user like below:
|
|
Login with this admin username and the password assigned. You should see an admin interface.
Delete User:
|
|
Change User Password:
|
|
Create new Virtualhost:
|
|
List available Virtualhosts:
|
|
Delete a virtualhost:
|
|
Grant user permissions for vhost:
|
|
List vhost permissions:
|
|
To list user permissions:
|
|
Delete user permissions:
|
|
Conclusion
In this guide we managed to install and set up RabbitMQ. We also learnt how to create users and vhosts.