Installing RabbitMQ rpm on RHEL 5.11

Rough notes for installing RabbitMQ on RHEL5.11.

Install the EPEL repo (not sure if this is needed for the RPM install or not):

curl -O http://archives.fedoraproject.org/pub/archive/epel/5/x86_64/epel-release-5-4.noarch.rpm
rpm -ivh epel-release-5-4.noarch.rpm
yum update

Install the erlang dependency (from answer here):

wget -O /etc/yum.repos.d/epel-erlang.repo http://repos.fedorapeople.org/repos/peter/erlang/epel-erlang.repo
yum install erlang

Download the noarch version of RabbitMQ:

wget -O http://www.rabbitmq.com/releases/rabbitmq-server/v3.1.1/rabbitmq-server-3.1.1-1.noarch.rpm

Note on my initial install of RHEL 5.11 I could’t wget or curl to any https based sites, as I’d get SSL connection/certificate errors. I downloaded the rpm on another machine and scp’d it up to my server.

Install the rpm:

rpm -i rabbitmq-server-3.1.1-1.noarch.rpm

Enable the admin console:

rabbitmq-plugins enable rabbitmq_management

Delete the default guest user:

rabbitmqctl delete_user guest

Create a new admin user and add to the admin group:

rabbitmqctl add_user newuserid password
rabbitmqctl set_user_tags admin administrator

Start/stop/restart the server:

/sbin/service rabbitmq-server start
/sbin/service rabbitmq-server stop
/sbin/service rabbitmq-server restart

Additional notes:

I tried the generic Linux version wouldn’t start up for me, it gave this error, so found a working RPM above instead:

{"init terminating in do_boot",{undef,[{rabbit_prelaunch,start,[]},{init,start_it,1},{init,start_em,1}]}}
init terminating in do_boot ()

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.