This guide is one section of a larger guide to installing a cent 6.x server in virtual box for development purposes with different applications. The top level guide with links to all of the sections is here: https://gist.github.com/ryanguill/5149058 Some instructions in this guide may assume a configuration from other parts of the guide.
#Install rabbitmq
Instructions taken from here: http://www.rabbitmq.com/install-rpm.html
Make sure you are root, if not
# su -
Enable EPEL, all versions http://fedoraproject.org/wiki/EPEL/FAQ#howtouse
# su -c 'rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm'
Install erlang (may take some time if you get a bad mirror)
# yum install erlang
install rabbitmq
# rpm --import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
# yum clean all
# yum install http://www.rabbitmq.com/releases/rabbitmq-server/v3.2.4/rabbitmq-server-3.2.4-1.noarch.rpm
Start the server
# chkconfig rabbitmq-server on
# service rabbitmq-server start
Check the status
# rabbitmqctl status
OR
# service rabbitmq-server status
If you want to stop the server:
# rabbitmqctl stop
OR
# service rabbitmq-server stop
But to start the server it is
# service rabbitmq-server start
Enable the management plugin
# rabbitmq-plugins enable rabbitmq_management
Restart the service
# service rabbitmq-server restart
Be default, there is no configuration file for rabbitmq. we are going to create one so that we can change the location of where it stores its persistent data to the /data partition.
Create the folder on the data partition for rabbitmq data
# mkdir /data/rabbitmq
# sudo chmod 777 /data/rabbitmq
# sudo chown user:user /data/rabbitmq
Create the rabbitmq-env.conf file
# sudo touch /etc/rabbitmq/rabbitmq-env.conf
Open it with vi
# sudo vi /etc/rabbitmq/rabbitmq-env.conf
And then paste in the contents below:
# ##########################
# MNESIA_DIR will be assembled as MNESIA_BASE/NODENAME
# ##########################
MNESIA_BASE=/data/rabbitmq/
# MNESIA_DIR=
And then restart the service
# sudo service rabbitmq-server restart
Poke a hole in the firewall
# vi /etc/sysconfig/iptables
Add the following lines before the first line that says REJECT - CHANGE THE IPADDRESS MASK as necessary for your network
# rabbitmq
-A INPUT -s 192.168.0.0/24 -m state --state NEW -m tcp -p tcp --dport 15672 -j ACCEPT
-A INPUT -s 192.168.0.0/24 -m state --state NEW -m tcp -p tcp --dport 5671 -j ACCEPT
-A INPUT -s 192.168.0.0/24 -m state --state NEW -m tcp -p tcp --dport 5672 -j ACCEPT
restart the firewall
# service iptables restart
The admin should now be available at:
http://{ipaddress}:15672
guest:guest
go to the admin section, and create a couple users
user:batman (click admin link)
click the new user "user"
set permission to virtual host / (just click set permission)
Add another user, with the same settings
root:batman
see the getting started tutorials on the website for more info: http://www.rabbitmq.com/getstarted.html
see this gist for some CFML code to try: https://gist.github.com/ryanguill/4942173