rabbitmq初始安装配置异常

发布时间:2024年01月05日
[root@localhost ~]# docker ps
CONTAINER ID   IMAGE                      COMMAND                   CREATED       STATUS       PORTS                                                                                                                                                 NAMES
fcd1bc8a01f5   rabbitmq:3.12-management   "docker-entrypoint.s…"   2 hours ago   Up 2 hours   4369/tcp, 5671/tcp, 0.0.0.0:5672->5672/tcp, :::5672->5672/tcp, 15671/tcp, 15691-15692/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp, :::15672->15672/tcp   rabbitmq
[root@localhost ~]# docker exec -it rabbitmq bash
root@fcd1bc8a01f5:/# rabbitmqctl list_users
Listing users ...
user    tags
guest   [administrator]
root@fcd1bc8a01f5:/# rabbitmqctl add_user pzy 123456
Adding user "pzy" ...
Done. Don't forget to grant the user permissions to some virtual hosts! See 'rabbitmqctl help set_permissions' to learn more.
root@fcd1bc8a01f5:/# rabbitmqctl set_permissions -p / pzy ".*" ".*" ".*"
Setting permissions for user "pzy" in vhost "/" ...
root@fcd1bc8a01f5:/#  rabbitmqctl set_user_tags pzy administrator
Setting tags for user "pzy" to [administrator] ...
root@fcd1bc8a01f5:/# 

文章来源:https://blog.csdn.net/m0_68935893/article/details/135400875
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。