Installing RabbitMQ
Perform the following operations on the controller node.
- Install rabbitmq-server.
1yum -y install rabbitmq-server

- Enable the RabbitMQ service and configure it to start upon system startup.
1 2
systemctl enable rabbitmq-server.service systemctl start rabbitmq-server.service
- 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 &=$-_.+!*()
- Start the rabbitmq-manager plugin.
1rabbitmq-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.
- Modify the default RabbitMQ parameter.
- Open the /usr/lib/systemd/system/rabbitmq-server.service file.
- Press i to enter the insert mode and add the following content under [Service]:
1 2
[service] LimitNOFILE=16384

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