Installing RabbitMQ
Install RabbitMQ on the controller node. Before installing and configuring the RabbitMQ service, ensure that the host name has been modified. If the host name changes again, RabbitMQ data will be lost. In this case, you need to reconfigure RabbitMQ if you change the host name again.
- Install the software package.
yum install rabbitmq-server
- Start the RabbitMQ service and configure it to automatically start upon system startup.
systemctl enable rabbitmq-server.service systemctl start rabbitmq-server.service
- Add an OpenStack user.
rabbitmqctl add_user openstack RABBIT_PASSWORD
Replace RABBIT_PASSWORD with the OpenStack user password. The password cannot contain the characters including #@$ and can contain the special characters including &=-_.+!*()
- Set the permission of the OpenStack user so that the user can perform configuration, write, and read operations.
rabbitmqctl set_permissions openstack ".*" ".*" ".*"
- Modify the default RabbitMQ parameter.
- Open the /usr/lib/systemd/system/rabbitmq-server.service file.
vi /usr/lib/systemd/system/rabbitmq-server.service
- Press i to enter the insert mode and add the following content to the Service module:
[Service] LimitNOFILE=16384
LimitNOFILE indicates the maximum number of file descriptors that can be opened by a single process.
- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Open the /usr/lib/systemd/system/rabbitmq-server.service file.
- Restart the RabbitMQ service.
systemctl daemon-reload systemctl restart rabbitmq-server.service
Parent topic: Configuring the Deployment Environment