官术网_书友最值得收藏!

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...

  1. 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.

  2. To start the RabbitMQ Linux services, start a service named rabbitmq-server:
    [root@controller ~]# systemctl start rabbitmq-server.service
    
  3. 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
主站蜘蛛池模板: 东丰县| 西乌珠穆沁旗| 绵竹市| 罗田县| 阿城市| 黔江区| 遂昌县| 呈贡县| 吴桥县| 额济纳旗| 武鸣县| 玛沁县| 本溪市| 诏安县| 阿坝县| 墨竹工卡县| 毕节市| 曲水县| 白朗县| 金堂县| 潜江市| 东源县| 南宁市| 莱芜市| 额尔古纳市| 灯塔市| 深水埗区| 民乐县| 潼南县| 遂昌县| 达孜县| 新竹县| 恩平市| 满洲里市| 迁安市| 万州区| 玉龙| 蓝山县| 扎鲁特旗| 堆龙德庆县| 大安市|