It is recommended to use distribution’s packaged version of Erlang to run the server. This is part of Fedora, and in EPEL for RHEL. To enable EPEL run the following command
su -c 'rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm'
Add the package repository provided by the owner of EPEL Erlang
su -c 'wget -O /etc/yum.repos.d/epel-erlang.repo http://repos.fedorapeople.org/repos/peter/erlang/epel-erlang.repo'
yum –y install erlang
Install RabbitMQ from package manager (Recommended)
yum -y install rabbitmq-server
Install RabbitMQ using RPM file
Download the Fedora RPM version of rabbitMQ from following link under the section Download the RabbitMQ server.
cd /usr/share sudo wget http://www.rabbitmq.com/releases/rabbitmq-server/v2.4.1/rabbitmq-server-2.4.1-1.noarch.rpm
Execute the downloaded rpm file
sudo rpm -i rabbitmq-server-2.4.1-1.noarch.rpm
Test the RabbitMQ installation
sudo /etc/init.d/rabbitmq-server start sudo /etc/init.d/rabbitmq-server status
If you see somewhat following output installation was successful
You can stop the server by this command
sudo /etc/init.d/rabbitmq-server stop
Make RabbitMQ as a service to start at boot
sudo /sbin/chkconfig rabbitmq-server on
You can use following commands to control rabbitmq service
Enjoy the Rabbit!!