-
Notifications
You must be signed in to change notification settings - Fork 28
esdc rabbitmq
Richard Kellner edited this page Feb 2, 2020
·
7 revisions
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.
We will use the epel repository and install the newest version (>=3.3):
yum install epel-release
yum install rabbitmq-server
Once installed start the service and enable so it starts automatically after reboot:
systemctl start rabbitmq-server
systemctl enable rabbitmq-server
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
systemctl restart rabbitmq-server
Homepage | User Guide | API Reference | Wiki