Rate This Document
Findability
Accuracy
Completeness
Readability

Installing RabbitMQ

Perform the following operations on the controller node.

  1. Install rabbitmq-server.
    1
    yum -y install rabbitmq-server
    

  2. Enable the RabbitMQ service and configure it to start upon system startup.
    1
    2
    systemctl enable rabbitmq-server.service
    systemctl start rabbitmq-server.service
    
  3. Add and configure the openstack user.
    1
    2
    rabbitmqctl add_user openstack PASSWORD
    rabbitmqctl set_permissions openstack ".*" ".*" ".*"
    

    Replace PASSWORD with the password of the openstack user. 123456 is used as an example. The openstack user password does not support the number sign (#). OpenStack has no requirements on password complexity. You can set a password without special characters. OpenStack only supports the special characters including &=$-_.+!*()

  4. Start the rabbitmq-manager plugin.
    1
    rabbitmq-plugins enable rabbitmq_management
    

    After the plugin is started, you can access the RabbitMQ service using a browser. Enter http://<controller_IP>:15672 in the address box and enter guest as the user name and password.

  5. Modify the default RabbitMQ parameter.
    1. Open the /usr/lib/systemd/system/rabbitmq-server.service file.
    2. Press i to enter the insert mode and add the following content under [Service]:
      1
      2
      [service]
      LimitNOFILE=16384
      

    3. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
  6. Restart the RabbitMQ service.
    1
    2
    systemctl daemon-reload
    systemctl restart rabbitmq-server