In this post, I will show you how to install RabbitMQ on Ubuntu 16.04. We can install RabbitMQ easily using Ubuntu’s package manager, apt
.
The apt
is package manager allows us to install most software pain-free from a repository maintained by Ubuntu.
What is RabbitMQ?
RabbitMQ is a robust messaging system for building applications and systems. It is very easy to use, which runs on all major operating systems. RabbitMQ’s queues and exchanges APIs are cross-platform and supporting multiple languages which makes it easy to build distributed applications.
Install RabbitMQ
We can get started by running below command from your terminal to make sure that all system packages are up-to-date.
$ sudo apt-get update
The RabbitMQ server is written in the Erlang programming language, so before installing RabbitMQ you should install Erlang, let’s use the below command from your terminal to install Erlang on your Ubuntu 16.04 server.
$ sudo apt-get install -y erlang
After Erlang installation, let’s use the below command to install RabbixMQ server
$ sudo apt-get install rabbitmq-server
RabbitMQ server Status check
RabbitMQ server has been installed on Ubuntu to check the status of the RabbitMQ server, run the below command –
$ systemctl status rabbitmq-server or $ service rabbitmq-server status
RabbitMQ server start
To start the RabbitMQ server, run the below command –
$ systemctl start rabbitmq-server or $ service rabbitmq-server start
Start on Reboot – RabbitMQ server
To enable RabbitMQ server services to auto start after each reboot, run the below command –
$ systemctl enable rabbitmq-server or $ service rabbitmq-server enable
Stop RabbitMQ server
To stop the already running RabbitMQ server issue the following command –
$ systemctl stop rabbitmq-server or $ service rabbitmq-server stop