RabbitMQ Config File: How to Modify
The configuration file for RabbitMQ is located at /etc/rabbitmq/rabbitmq.conf and can be modified by editing this file.
Here are some common configuration options and their meanings:
- The default port for TCP listeners is 5672.
- The default SSL port for listeners is 5671.
- The default user is a guest.
- The default password is “guest.”
- The default vhost is set to /.
- The cacert.pem file is located at the specified path in the ssl_options.cacertfile variable.
- The file path for the server certificate is specified in the SSL options as ssl_options.certfile = /path/to/server/cert.pem.
- The key.pem file for the server is located at /path/to/server.
After modifying the configuration file, RabbitMQ needs to be restarted for the changes to take effect. You can use the following command to restart RabbitMQ:
sudo systemctl restart rabbitmq-server
Note: Before modifying the configuration file, please make sure to back up the original configuration file to prevent any unexpected situations.