RabbitMQ uses the AMQP protocol, and can be used for messaging apps. It’s very easy to use once you get the hang of it, and best of all, it’s open source! I am going to break up the entire RabbitMQ experience up into several parts, including how to use it in Android and iOS applications.
To enable clients to send messages to one another, we require a central machine running the RabbitMQ server process to coordinate them. To install RabbitMQ, first ensure that
erlang is installed and up-to-date on your machine:
yum update erlang
erlang is not installed, install it:
yum install erlang
If that didn’t work, get the latest
epel repository and run it:
su -c 'rpm -Uvh http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm'
Then install it again by running
yum install erlang.
Next, install the latest version of RabbitMQ Server from RabbitMQ Server Download Page:
I am using the RPM package, as my machine is running on CentOS 7.
After downloading, run:
rpm --import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
And then install the rpm:
yum install rabbitmq-server-3.4.3-1.noarch.rpm
Now you can run RabbitMQ Server. Make sure your port 5672 is open (Refer to this if you’re not sure how to do so):
To start the daemon by default when server boots up, run:
chkconfig rabbitmq-server on