Rabbitmq is a free and open source message broker system that implements the Advanced Message Queuing Protocol (AMQP). It is also known as message-oriented middleware written in the Erlang programming language and built on the Open Telecom Platform framework for clustering and failover.
Rabbitmq is a scalable implementation of an AMQP broker. AMQP is the most widely used open-source standard for distributing and transferring messages from a source to a destination.
The Rabbitmq message broker system provides lot's of features some of them are listed below:
Supports multiple protocols such as MQTT, STOMP and HTTP.
Supports routing capabilities, you can implement rules to route messages between exchanges and queues.
Supports multiple programming language with a variety of supported clients.
Supports clustering, so you can clustered several rabbinmq server on local network.
Supports high availability, so if a broker fails then communication will be redirected to different broker instance.
Provides user friendly web interface to monitor and control every aspect of your message broker.
Rabbitmq comes with lot's of plugins, you can easily extend it and also write your own.
Rabbitmq provides tracing features that can be used to find out what's going on.
In this tutorial, we will learn how to install rabbitmq on Ubuntu 16.04 server.
A server running Ubuntu 16.04.
A non-root user with sudo privileges configure on your server.
Before starting, you will need to update Ubuntu repository with the latest one.
You can do this by running the following commands:
sudo apt-get update -ysudo apt-get upgrade -y
Before installing rabbitmq, you will need to install erlang as a prerequisite of rabbitmq. You can install them by running the following commands:
You can check the status of rabbitmq server with the following command:
sudo systemctl status rabbitmq-server
RabbitMQ comes with default built-in settings which will quite likely be sufficient for running your RabbitMQ server effectively. If it runs fine, then you possibly don't need any configuration at all.
There are three way to customize RabbitMQ server.
You can define ports, file location and names using environment variable file.
You can defines server component settings for permissions, limits and clusters using configuration file.
runtime parameters and policies
You can defines cluster-wide settings which can change at run time .
You can find location of configuration file by inspecting RabbitMQ log file.
If you want to manage the maximum amount of connections upon launch, then you will need to modify rabbitmq-server file located at /etc/default/ directory.
sudo nano /etc/default/rabbitmq-server
Find the line that containing word ulimit and uncomment it:
ulimit -n 1024
Save and close the file, then you can proceed to next step.
Allow RabbitMQ Through Firewall
By default RabbitMQ web management console runs on port 15672. So you will need to allow this port through UFW firewall. By default UFW firewall is disabled in Ubuntu 16.04, so you will need to enable it first.
You can enable UFW filrewall with the following command:
sudo ufw enable
Once UFW is enabled, allow port 15672 using the following command:
sudo ufw allow 15672
Once you are done, you can proceed to next step.
Accessing RabbitMQ Web Management Console
Once everything is setup properly, it's time to access Rabbitmq web management console.
Before starting, you will need to install rabbitmq web management plugin first. You can easily manage and monitor your RabbitMQ server in a variety of ways using this plugin.
Using this console, you can manage queues, bindings and users, monitor queues, message rates, connections and also monitor Erlang processes, memory usage etc.
To install this plugin simply run the following command:
sudo rabbitmq-plugins enable rabbitmq_management
The above command will enable the following plugins:
Once the plugin is enabled, you will need to restart rebbitmq service for the changes to come into effect.
Next, you will also need to create new admin user.
You can create a new admin user with the following commands:
Finally, you have successfully installed RabbitMQ server on Ubuntu 16.04. You can now easily manage your RabbitMQ server from your web.
In this tutorial, you have learn how to install RabbitMQ server on Ubuntu 16.04 server. You have also learned how to enable the RabbitMQ web management plugins. I hope, you can now easily deploy RabbitMQ server in production environment.
If you find your cPanel disk space filling up, or an email address has hit its disk space quota, cPanel has a helpful built in Email Disk Usage tool. This will provide you with a simple to understand breakdown of how much disk space each folder for a particular email...
Although WHM will normally automatically keep itself up to date, you may want to manually check for server updates / push through an update that is pending, or it may be that you have automatic updates switched off on your cPanel server. In this guide we will show you how...
You may sometimes need to manually adjust the PHP settings on your cPanel server – for example if a site is hitting the PHP memory, or file size upload limit. WHM allows you to quickly change the settings of any PHP version installed on the server when needed, using the...