RabbitMQ没有连接Access Refused



我试图在兔子中创建一个队列,但我正在处理连接问题。我的应用程序。属性如下:

spring.rabbitmq.addresses=xxxxxxx.xxxx.dev.xxx:5672
spring.rabbitmq.username=people-consumer
spring.rabbitmq.password=*******
peopleevents.vhost=PEOPLE
peopleevents.queue=qu-people-cores-update
peopleevents.exchange=ex-people-updates
peopleevents.routingkey=ONLINE.UPDATE.PERSONF.PERSONF;

但是当尝试连接时,地址失败,如图所示:

2022-06-27 14:06:43.542  INFO 13668 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
2022-06-27 14:06:43.544  INFO 13668 --- [           main] o.s.a.r.c.CachingConnectionFactory       : Attempting to connect to: [SCGLCCRAMQD0005.SCGER.DEV.CORP:5672]
2022-06-27 14:06:43.958  INFO 13668 --- [           main] o.s.a.r.c.CachingConnectionFactory       : Created new connection: connectionFactory#63538bb4:0/SimpleConnection@8b13d91 [delegate=amqp://people-consumer@107.2.164.186:5672/PEOPLE, localPort= 59226]
2022-06-27 14:06:44.236 ERROR 13668 --- [.2.164.186:5672] o.s.a.r.c.CachingConnectionFactory       : Channel shutdown: channel error; protocol method: #method<channel.close>(reply-code=403, reply-text=ACCESS_REFUSED - access to queue 'qu-people-cores-update' in vhost 'PEOPLE' refused for user 'people-consumer', class-id=50, method-id=10)

任何想法?

ACCESS_REFUSED

表示用户people-consumer没有访问vhostPEOPLEqu-people-cores-update的权限

查看管理界面的用户权限:http://localhost:15672/#/users/people-consumer

或使用rabbitmqctl工具

最新更新