如何更改RabbitMQ默认密码

发布于 2025-01-30 08:03:35 字数 560 浏览 1 评论 0原文

如何更改RABBITMQ默认访客用户/密码

docker-compose.yaml

版本:“ 3.8”

服务:

RabbitMQ3:

    container_name: "rabbitmq"

    image: rabbitmq:3.8-management-alpine

    environment:

        - RABBITMQ_DEFAULT_USER=myuser

        - RABBITMQ_DEFAULT_PASS=mypassword

    ports:

        # AMQP protocol port

        - '5672:5672'

        # HTTP management UI

        - '15672:15672'

RabbitMQ容器在更新Docker-Compose文件中更新用户名和密码后重新启动,我已将默认用户名和密码更改为rabitmq.conf,但问题仍然相同。

我在下面提到了一个设置。 AMQP://密码:用户@localhost:5672/

How to change the rabbitMQ default guest user/password

docker-compose.yaml

version: "3.8"

services:

rabbitmq3:

    container_name: "rabbitmq"

    image: rabbitmq:3.8-management-alpine

    environment:

        - RABBITMQ_DEFAULT_USER=myuser

        - RABBITMQ_DEFAULT_PASS=mypassword

    ports:

        # AMQP protocol port

        - '5672:5672'

        # HTTP management UI

        - '15672:15672'

rabbitMQ container getting restarted after updating username and password in a docker-compose file and I have changed the default user name and password in rabitmq.conf but the issue remains the same.

I mentioned below one in setting.py
amqp://password:user@localhost:5672/

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文