Ø 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
2.1 Adding repository entry
To add Erlang Solutions repository (including our public key for
apt-secure
) to your system, call the
following commands:
wget
http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
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.
#!/bin/sh
cat <<EOF >
/etc/apt/sources.list.d/rabbitmq.list
deb http://www.rabbitmq.com/debian/ testing
main
EOF
curl
http://www.rabbitmq.com/rabbitmq-signing-key-public.asc -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
|
/etc/rabbitmq
|
application files
|
/usr/lib/rabbitmq
|
data files
|
/var/lib/rabbitmq
|
Log files
|
/var/log/rabbitmq
|
Once
RabbitMQ has been started, confirm that it actually works. You can do this by
installing the RabbitMQ Java client and running the test scripts that come with
it. Use the following instructions to install the required packages on the
instance:
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
http://www.rabbitmq.com/releases/rabbitmq-java-client/v3.3.4/rabbitmq-java-client-bin-3.3.4.tar.gz
\ -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.
No comments:
Post a Comment