After a fresh install of RabbitMQ, I have encountered a Login Failed error when trying to access the RabbitMQ Management console at http://localhost:15672

Here’s one possible solution to overcome this issue.

Create a file /etc/rabbitmq/rabbitmq.config, and add the below content into that file.

[{rabbit, [{loopback_users, []}]}].

Restart the service to apply the changes.