Miscellaneouss

How to Install RabbitMQ on Ubuntu

rabbitmq-plugins
mm
Written by Santosh Prasad

RabbitMQ is an open source most popular message broker software that implements the Advanced Message Queuing Protocol (AMQP). It is written in the Erlang programming language. RabbitMQ can be easily deployed in a distributed and federated configurations to meet high-scale, high-availability requirements.

In this article I will show how you can install RabbitMQ on Ubunut.

Prerequisites

1. Needed Ubunut Operating system.
2. Need root access or sudo privileges.

The process for downloading and installing RabbitMQ on Ubuntu and Debian will be similar to CentOS due to our desire of having a more recent version.

First of all update your system.

# apt-get    update 
# apt-get -y upgrade

Enable RabbitMQ application repository:

# echo "deb http://www.rabbitmq.com/debian/ testing main" >> /etc/apt/sources.list

Add the verification key for the package:

# curl http://www.rabbitmq.com/rabbitmq-signing-key-public.asc | sudo apt-key add -

Update the sources with our new addition from above:

# apt-get update

Finally, Install RabbitMQ using below command.

# apt-get install rabbitmq-server

In order to manage the maximum amount of connections upon launch, open up and edit the following configuration file using nano:

# vim /etc/default/rabbitmq-server

Uncomment the limit line (i.e. remove #) before saving and exit by pressing CTRL+X followed with Y.

Enable Web Management Console

RabbitMQ Management Console is one of the available plugins that lets you monitor the [RabbitMQ] server process through a web-based graphical user interface (GUI).

Using this console you can:

  • Manage exchanges, queues, bindings, users
  • Monitor queues, message rates, connections
  • Send and receive messages
  • Monitor Erlang processes, memory usage
  • And much more

Run the below command to enable RabbitMQ Web management console.

# rabbitmq-plugins enable rabbitmq_management

Now restart RabbitMQ server.

# /etc/init.d/rabbitmq-server restart

Once console enabled, you can access using your favourite browser.

http://[your droplet's IP]:15672/.

The default username and password are both set “guest” for the log in.

Thank you! for visiting Look Linux.

If you find this tutorial helpful please share with your friends to keep it alive. For more helpful topic browse my website www.looklinux.com. To become an author at Look Linux Submit Article. Stay connected to Facebook.

About the author

mm

Santosh Prasad

Hi! I'm Santosh and I'm here to post some cool article for you. If you have any query and suggestion please comment in comment section.

Leave a Comment