1. 控制台报错:Exception in thread "main" java.io.IOException……
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 'springboot'……
Caused by: com.rabbitmq.client.ShutdownSignalException: connection error;
原因分析:用户没有对应Virtual Hosts 的操作权限

解决方案:添加登录用户权限 rabbitmqctl set_permissions -p / mq '.*' '.*' '.*' 或者登录RabbitMQ管理页面http://localhost:15672/#/ 添加用户权限

2. 控制台报错:protocol method reply-text=NOT_FOUND - no queue 'hello' in vhost '/',

原因分析:Virtual Hosts '/'中没有添加 名称为'hello'的queue

解决方案:登录RabbitMQ管理页面http://localhost:15672/, 在对应用户下Add Queue

相关文章:

  • 2021-10-24
  • 2021-11-13
  • 2021-04-04
  • 2021-09-13
  • 2021-08-02
  • 2021-06-08
  • 2021-07-22
猜你喜欢
  • 2022-12-23
  • 2021-09-02
  • 2021-06-16
  • 2021-10-11
  • 2021-05-10
  • 2021-09-03
  • 2021-07-16
相关资源
相似解决方案