Openstack Chapter 6-Configure MQ

1. Introduction
OpenStack uses message queues to coordinate operation and status information between services. The message queue service usually runs on the controller node. OpenStack supports a variety of message queue services, including RabbitMQ, Qpid and ZeroMQ. However, most distributions of packaged OpenStack support specific message queue services.
Follow the official website this time and use rabbitmq to install.
Rabbitmq's official website
https://www.rabbitmq.com/

2. Install
on the openstack installation document, as long as yum install rabbitmq-server -y is fine.
We can see why
yum list rabbitmq-server can be installed and used in this way . You can see that the rabbitmq package is included in yum, which is version 3.6.16 the
so directly yum what you can, but rabbitmq official website provides two installation methods, a brief mention here do understand.

Openstack Chapter 6-Configure MQ

2.1 Rabbitmq's official website installation method The
official website provides two installation methods, one is yum, the other is binary installation

For rpm installation, you need to download some dependency packages, which is more troublesome. The official recommendation to use yum
is to first import the key
rpm --import https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq- release-signing-key.asc
then create the file rabbitmq.repo warehouse, write the following content
Vim //etc/yum.repos.d/rabbitmq.repo
#centos7 as an example

[bintray-rabbitmq-server]
name=bintray-rabbitmq-rpm
baseurl=https://dl.bintray.com/rabbitmq/rpm/rabbitmq-server/v3.8.x/el/7/
gpgcheck=0
repo_gpgcheck=0
enabled=1

Then check the
Openstack Chapter 6-Configure MQ
yum installation at this time, you can
pay attention to install erlang in advance
yum install erlang -y

三、启动
systemctl enable rabbitmq-server.service
systemctl start rabbitmq-server.service

4. Add user
rabbitmqctl add_user openstack RABBIT_PASS
Note to replace RABBIT_PASS with your own password
Openstack Chapter 6-Configure MQ
5. Allow users to configure, write and read access permissions openstack:
rabbitmqctl set_permissions openstack ". "". " ".*" So
far, the mq part is installed!

Guess you like

Origin blog.51cto.com/11125450/2546713