RabbitMQ没有连接访问拒绝
我正在尝试在兔子中创建一个队列,但我正在处理连接问题。 我的application.properties如下:
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://[email protected]: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)
想知道吗?
I'm trying to create a queue in Rabbit but I'm dealing with connection issues.
My application.properties is as follow:
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;
But when attempting to connect is fails in the address as you can see here:
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://[email protected]: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)
Any idea?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
表示用户
人民消费者
没有赠款可以访问qu-people-cores-update
in vhostpeople
检查用户授予管理UI:http:// localhost:15672/#/users/people-consumer
或使用
rabbitmqctl
工具means that the user
people-consumer
doesn't have the grants to access toqu-people-cores-update
in vhostPEOPLE
Check the user grant on the management UI: http://localhost:15672/#/users/people-consumer
or using the
rabbitmqctl
tool