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:
OK.. So, you have to execute the following commands as mentioned below.
- you have the administrative privileges.
- Java 8 installed.
OK.. So, you have to execute the following commands as mentioned below.
Installing Erlang version 20.1
# cd /opt
# wget https://github.com/rabbitmq/erlang-rpm/releases/download/v20.1.7/erlang-20.1.7-1.el6.x86_64.rpm
# rpm -ivh erlang-20.1.7-1.el6.x86_64.rpm
Installing Socat
# yum install socat
Installing RabbitMQ
# wget https://dl.bintray.com/rabbitmq/all/rabbitmq-server/3.7.0/rabbitmq-server-3.7.0-1.el6.noarch.rpm
# 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.
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