- Production Ready OpenStack:Recipes for Successful Environments
- Arthur Berezin
- 219字
- 2021-07-09 21:45:14
Installing RabbitMQ
OpenStack uses a message broker for components to inner communicate. Red Hat-based operating systems (for example, RHEL, CentOS, and Fedora) can run RabbitMQ or QPID message brokers. Both provide roughly similar performance, but as RabbitMQ is more widely used message broker with OpenStack, we are going use it as a message broker for our OpenStack environment.
How to do it...
- Install RabbitMQ from the yum repository:
Run the following commands on the controller node!
[root@controller ~]# yum install rabbitmq-server -y
RabbitMQ is written in erlang and will probably bring some erlang dependency packages along.
- To start the RabbitMQ Linux services, start a service named
rabbitmq
-server:[root@controller ~]# systemctl start rabbitmq-server.service
- Now enable it, to make sure that it starts on a system reboot:
[root@controller ~]# systemctl enable rabbitmq-server.service
There's more...
RabbitMQ maintains its own user accounts and passwords. By default, the user name guest
is created with the default password guest
. As it is a major security concern to keep default password, we should change this password. We can use the command rabbitmqctl
to change guest
's account password:
[root@controller ~]# rabbitmqctl change_password guest guest_password Changing password for user "guest" ... ...done.
We need to allow other services to be able to access the message broker over the firewall using firewall-cmd
command:
[root@controller ~]# firewall-cmd --add-port=5672/tcp --permanent success
- C++案例趣學
- Java 開發(fā)從入門到精通(第2版)
- Learning PostgreSQL
- Oracle 11g從入門到精通(第2版) (軟件開發(fā)視頻大講堂)
- Python程序設(shè)計(第3版)
- 零基礎(chǔ)學Java(第4版)
- Mastering Predictive Analytics with Python
- AutoCAD VBA參數(shù)化繪圖程序開發(fā)與實戰(zhàn)編碼
- Mathematica Data Analysis
- ASP.NET Core 2 Fundamentals
- Scratch3.0趣味編程動手玩:比賽訓練營
- Python程序設(shè)計與算法基礎(chǔ)教程(第2版)(微課版)
- 平面設(shè)計經(jīng)典案例教程:CorelDRAW X6
- 實戰(zhàn)Java高并發(fā)程序設(shè)計(第2版)
- Illustrator CS6設(shè)計與應(yīng)用任務(wù)教程