RabbitMQ没有连接访问拒绝

发布于 2025-02-10 21:26:42 字数 1504 浏览 0 评论 0原文

我正在尝试在兔子中创建一个队列,但我正在处理连接问题。 我的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

陌上芳菲 2025-02-17 21:26:42
ACCESS_REFUSED

表示用户人民消费者没有赠款可以访问qu-people-cores-update in vhost people

检查用户授予管理UI:http:// localhost:15672/#/users/people-consumer

或使用rabbitmqctl工具

ACCESS_REFUSED

means that the user people-consumer doesn't have the grants to access to qu-people-cores-update in vhost PEOPLE

Check the user grant on the management UI: http://localhost:15672/#/users/people-consumer

or using the rabbitmqctl tool

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文