How to create a RabbitMQ User
After you install the rabbitmq-server it is normal that you secure the service and create a new user for accessing the service.
I usually use rabbitmq for celery tasks. So this is a normal step to do.
Remember that RabbitMQ comes with a admin command:
rabbitmqctl and this is what we are gonna use.
As a default rabbit comes with a
guest user that can connect from localhost without a password. So we delete that first:
rabbitmqctl delete_user guest
rabbitmqctl add_vhost my_app
rabbitmqctl add_user my_user my_password
rabbitmqctl set_permissions -p my_app my_user ".*" ".*" ".*"
About permissions and access control, you can find more information here: