Friday, February 6, 2015

RabbitMQ - Installation & Configuration at AWS EC2

Ø  RabbitMQ will work on 32-bit operating system, but for production usage we recommend 64-bit instances.
Ø  Launched an ami instance Ubuntu Server 14.04 LTS (HVM), SSD Volume Type - ami-864d84ee, 64-bit OS.
RabbitMQ is a message broker based on Erlang. So, before installing RabbitMQ server, we need to install Erlang.
2.1   Adding repository entry 

To add Erlang Solutions repository (including our public key for apt-secure) to your system, call the following commands:

sudo dpkg -i erlang-solutions_1.0_all.deb
Refresh the repository cache and install the erlang package.

sudo apt-get update
sudo apt-get install erlang

For installing latest version of RabbitMQ, use the debian repository and run the below shell script.

cat <<EOF > /etc/apt/sources.list.d/rabbitmq.list
deb testing main
curl -o /tmp/rabbitmq-signing-key-public.asc
apt-key add /tmp/rabbitmq-signing-key-public.asc
rm /tmp/rabbitmq-signing-key-public.asc
apt-get -qy update
apt-get -qy install rabbitmq-server

The default folders where the package has installed files are
configuration files
application files
data files
Log files

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

curl \ -o rabbitmq-java-client-bin-3.3.4.tar.gz
tar xzf rabbitmq-java-client-bin-3.3.4.tar.gz
cd rabbitmq-java-client-bin-3.3.4

When the dependencies are available, we can run the test:

Note: If the above url is not accessible, add an entry for TCP (port: 15672) in Inbound rules of Security Groups of your EC2 instance.

8.   Start RabbitMQ Server

No comments:

Post a Comment