赞
踩
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 .* .* .* )
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。