RabbitMQ installation

Here, RabbitMQ installation steps are described for Ubuntu, based on the RabbitMQ install guide : http://www.rabbitmq.com/install-debian.html

Basically this should be enough if the additional dependencies are already in

sudo apt-get install rabbitmq-server

But I was having some trouble due to its other required dependencies. Listed them down here, may be useful for others-


1) Install Erlang
apt-get -y install erlang-nox

The above command may produce an error like below-

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
erlang-nox : Depends: erlang-base but it is not going to be installed or
erlang-base-hipe but it is not going to be installed
Depends: erlang-asn1 but it is not going to be installed
Depends: erlang-corba but it is not going to be installed
Depends: erlang-crypto but it is not going to be installed
Depends: erlang-diameter but it is not going to be installed
Depends: erlang-edoc but it is not going to be installed
Depends: erlang-eldap but it is not going to be installed
Depends: erlang-erl-docgen but it is not going to be installed
Depends: erlang-eunit but it is not going to be installed
Depends: erlang-ic but it is not going to be installed
Depends: erlang-inets but it is not going to be installed
Depends: erlang-mnesia but it is not going to be installed
Depends: erlang-odbc but it is not going to be installed
Depends: erlang-os-mon but it is not going to be installed
Depends: erlang-parsetools but it is not going to be installed
Depends: erlang-percept but it is not going to be installed
Depends: erlang-public-key but it is not going to be installed
Depends: erlang-runtime-tools but it is not going to be installed
Depends: erlang-snmp but it is not going to be installed
Depends: erlang-ssh but it is not going to be installed
Depends: erlang-ssl but it is not going to be installed
Depends: erlang-syntax-tools but it is not going to be installed
Depends: erlang-tools but it is not going to be installed
Depends: erlang-webtool but it is not going to be installed
Depends: erlang-xmerl but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

If there is any error like that, execute
sudo apt-get -f install

2) Install RabbitMQ from Deb

sudo chmod 777 /etc/apt/sources.list.d
sudo echo "deb http://www.rabbitmq.com/debian/ testing main" >/etc/apt/sources.list.d/rabbitmq.list

curl -L -o ~/rabbitmq-signing-key-public.asc http://www.rabbitmq.com/rabbitmq-signing-key-public.asc

On success, we should see this

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1702 100 1702 0 0 1689 0 0:00:01 0:00:01 --:--:-- 2991

Now

sudo apt-key add ~/rabbitmq-signing-key-public.asc

The output should be
OK

And then update

sudo apt-get update
sudo apt-get -y --allow-unauthenticated --force-yes install rabbitmq-server

3) Now start it

update-rc.d rabbitmq-server defaults
sudo /etc/init.d/rabbitmq-server start

Outputs to

* Starting message broker rabbitmq-server * message broker already running
[ OK ]

That’s all, now running sudo service rabbitmq-server status will return its status details.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s