Saturday, January 27, 2018

Installing Erlang version 20.1 and RabbitMQ 3.7 on AWS EC2 Amazon Linux instance

Today we are going to install Erlang version 20.1 and RabbitMQ 3.7 on an Amazon EC2 instance which is having an Amazon Linux version installed in it. In a nutshell we can say that, Amazon Linux can be considered equivalent to CentOS 6.

I am not going to eat your time and jumping directly towards the commands that you have to execute on your new instance. Before we start, please ensure:


  1. you have the administrative privileges. 
  2. Java 8 installed.
Just a brief, to install RabbitMQ, we would need Erlang and Socat to install first.

OK.. So, you have to execute the following commands as mentioned below.

Installing Erlang version 20.1

# cd /opt


# rpm -ivh erlang-20.1.7-1.el6.x86_64.rpm

Installing Socat


# yum install socat

 Installing RabbitMQ



# rpm -ivhrabbitmq-server-3.7.0-1.el6.noarch.rpm

# service rabbitmq-server start

Now we have to make sure that RabbitMQ is up as a service as soon as the server start up. To do this, execute the following command: 

# chkconfigrabbitmq-server on

To access the RabbitMQ Management Console on web, we need to enable the plugin. To do so execute the following command:

#  cd /usr/lib/rabbitmq/bin/

# rabbitmq-plugins enable rabbitmq_management

# cd /etc/rabbitmq/

# vim rabbitmq.config

[{rabbit, [{tcp_listeners, [{"", 5672}]},{loopback_users, []}]}].


Esc+:wq!

Now you can access the RabbitMQ on browser using:

http://<IP_Of_Your_AWS_Machine>:15672/

To login, use guest/guest as default password which you can change later.


Congratulations!! You did it.. :)

Do share your thoughts if you have any query, suggestion. 

Thanks!!

No comments:

Post a Comment