RabbitMQ Install – painless and simple!

I always install Erlang from the source, so the first step was to tell RPM I don’t care about Erlang package dependencies and I just want it to install RabbitMQ.

sudo rpm –nodeps -i http://www.rabbitmq.com/releases/rabbitmq-server/v2.4.1/rabbitmq-server-2.4.1-1.suse.noarch.rpm

It installs silently, always the best way.  There only a few steps that were needed to setup RabbitMQ to run as a daemon.  First, I had to modify the startup script, /etc/init.d/rabbitmq-server, so that the path to the Erlang shell erl (/usr/local/bin) was in the PATH variable in the script.  I suspect if I had installed Erlang via a package this step would not be necessary.

The next step was to switch on RabbitMQ as a daemon and then start the server:

sudo /sbin/chkconfig rabbitmq-server on
sudo /sbin/service rabbitmq-server start

Just to be safe I checked the startup logs, /var/log/rabbitmq/startup_log and /var/log/rabbitmq/startup_err to make sure everything looked OK.  I also checked the status of the server using the rabbitmqctrl tool.

sudo /usr/sbin/rabbitmqctl status

On the terminal you get a list of tuples that contains various information about the server’s status.

Status of node rabbit@<some host> …
{os_mon,”CPO  CXC 138 46″,”2.2.6″},
{sasl,”SASL  CXC 138 11″,”″},
{mnesia,”MNESIA  CXC 138 12″,”4.4.19″},
{stdlib,”ERTS  CXC 138 10″,”1.17.4″},
{kernel,”ERTS  CXC 138 10″,”2.14.4″}]},

Easy!  My test python scripts had no trouble hooking up to RabbitMQ and exchanging messages.  This is so much easier than CouchDB!


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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s