当前位置:   article > 正文

Caused by: com.rabbitmq.client.ShutdownSignalException_rabbitmq shutdownsignalexception access to vhost r

rabbitmq shutdownsignalexception access to vhost refused

spring boot与RabbitMQ整合启动时报如下错:

Caused by: com.rabbitmq.client.ShutdownSignalException: connection error; protocol method: #method<connection.close>(reply-code=530, reply-text=NOT_ALLOWED - access to vhost '/' refused for user 'root', class-id=10, method-id=40

 

登录 localhost:5672,新增一个用户root

查看信息

Can access virtual hosts的值为 No access,对应报错信息access to vhost '/' refused for user 'root'

好吧!没有权限

更改控制权限:

语法:            set_permissions [-p <vhost>] <userame> <conf> <write> <read>

  rabbitmqctl set_permissions -p / root .* .* .*        )

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/639246
推荐阅读
相关标签
  

闽ICP备14008679号