Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install RabbitMQ on Ubuntu 16.06

Install RabbitMQ on Ubuntu 16.04

Install Erlang

sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update -y
sudo apt-get install -y erlang erlang-nox

Add RabbitMQ apt repository

echo 'deb testing main' | sudo tee /etc/apt/sources.list.d/rabbitmq.list
wget -O- | sudo apt-key add -

Update the package list

sudo apt-get update -y

Install RabbitMQ

sudo apt-get install -y rabbitmq-server

Start RabbitMQ

sudo systemctl start rabbitmq-server

Check RabbitMQ status

sudo systemctl status rabbitmq-server

Enable RabbitMQ service so it starts on boot

sudo systemctl enable rabbitmq-server

Setup RabbitMQ Web Management Console

sudo rabbitmq-plugins enable rabbitmq_management

Single RabbitMQ Instances

Create Admin User in RabbitMQ

sudo rabbitmqctl add_user admin password 
sudo rabbitmqctl set_user_tags admin administrator
sudo rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"

Clustered RabbitMQ Instances

Setup Cluster On The Master Node

chmod +x

Enable SSL

Enable RabbitMQ and Management SSL

 {rabbit, [
 {ssl_listeners, [5671]},
 {ssl_options, [{cacertfile,"/path/to/cacertfile"},
 {rabbitmq_management, [
 {listener, [{port, 15671},
 {ssl, true},
 {ssl_opts, [{cacertfile, "/path/to/cacertfile"},
             {certfile,   "/path/to/certfile"},
             {keyfile,    "/path/to/keyfile"}]}

This comment has been minimized.

Copy link

alshell7 commented Aug 3, 2019

Running : Ubuntu 16.04 (xenial)

Installing Erlang and then installing RabbitMQ results in Erlang-EPMD errors :

But just skipping the first step of Installing Erlang and letting RabbitMQ install alone (auto installing dependencies), runs gracefully.

But thanks for the wonderful snippets!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.