如何更改RabbitMQ默认密码
如何更改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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论