Skip to content

esdc rabbitmq

Richard Kellner edited this page Feb 2, 2020 · 7 revisions

RabbitMQ

RabbitMQ is open source message broker software that implements the Advanced Message Queuing Protocol (AMQP) standard. It is used by Celery as a message broker.
http://www.rabbitmq.com/

Note: This guide is made for a development environment based on CentOS 7.

Install

We will use the epel repository and install the newest version (>=3.3):

yum install epel-release

yum install rabbitmq-server

Enable and start

Once installed start the service and enable so it starts automatically after reboot:

systemctl start rabbitmq-server

systemctl enable rabbitmq-server

Configure

Start rabbitmq, create a rabbitmq user with custom password, create a rabbitmq vhost and set permissions. Adjust the firewall.

RABBITMQPASS="S3cr3tP4ssw0rd"

rabbitmqctl add_user esdc ${RABBITMQPASS}
rabbitmqctl add_vhost esdc
rabbitmqctl set_permissions -p esdc esdc ".*" ".*" ".*"

# edit iptables to add line for opening RabbitMQ port
# add following line:
# -A INPUT -m state --state NEW -m tcp -p tcp --dport 5672 -j ACCEPT
vim /etc/sysconfig/iptables 
systemctl restart iptables  # allow port 5672 for compute nodes

# in case you use firewalld, ignore above and run commands below:
firewall-cmd --add-port=5672/tcp --permanent
firewall-cmd --reload

Restart

systemctl restart rabbitmq-server

Use

Not used directly. Used by Celery, which uses it via Kombu.

Clone this wiki locally