Installing RabbitMQ on Ubuntu 17.10

In this post we are going to install RabbitMQ on Ubuntu Server 17.10 and configure the web admin interface.

Installing RabbitMQ Server

Starting from a fully updated Ubuntu Server 17.10, the first thing you will need to do is download the Debian installer package:

# wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.4/rabbitmq-server_3.7.4-1_all.deb

Next install the package using dpkg

# dpkg -i rabbitmq-server_3.7.4-1_all.deb

It will have unresolved dependencies so run the following command to download and install those:

# apt --fix-broken install

This will create and start the rabbitmq-server service.  In the next section, we will add an admin user

Adding and Admin User

Now we are going to add an admin user so that we can manage RabbitMQ from the web interface.  Run the following commands to create the user and give them admin privileges:

# rabbitmqctl add_user {username} {password}
# rabbitmqctl set_user_tags {username} administrator
# rabbitmqctl set_permissions -p / {username} ".*" ".*" ".*"

Now that we have our admin user we can install the web interface:

Installing the Management Plugin

The web interface is installed by installing the RabbitMQ management interface.  Run the following command to install the plugin:

# rabbitmq-plugins enable rabbitmq_management

You can now access the admin interface at the following URL:

http://{server_ip}:15672

Login with the username and password we created in the previous section.  You should now see the RabbitMQ admin interface:

rabbitmq on ubuntu

For more Ubuntu articles click here.

Conclusion

I hope you have enjoyed this article, if so please leave a comment below.  For more articles, please signup for the AdminTome Blog below.  Also please feel free to share the article to your friends using the buttons to the left.  Thanks again for reading this post.