RabbitMQ 修改密码

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin> rabbitmqctl.bat change_password admin 123

 .Net 异常

OperationInterruptedException: The AMQP operation was interrupted: AMQP close-reason, initiated by Peer, code=530, text='NOT_ALLOWED - access to vhost '/' refused for user 'admin'', classId=10, methodId=40
原因是未授予权限
rabbitmqctl.bat set_permissions -p / admin .* .* .*

这样就好了

posted on 2023-02-24 10:02  ZhengyaoLu  阅读(419)  评论(0)    收藏  举报

导航