RabbitMQ的权限设置
来源:互联网 发布:淘宝类目搜索排名 编辑:程序博客网 时间:2024/05/19 19:57
当用java等一起驱动连接rabbitmq的时候,全部配置都正确了,但是,还是报错。这就是权限的问题。
java.io.IOException at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:116) at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:112) at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:134) at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:388) at com.rabbitmq.client.impl.recovery.RecoveryAwareAMQConnectionFactory.newConnection(RecoveryAwareAMQConnectionFactory.java:62) at com.rabbitmq.client.impl.recovery.AutorecoveringConnection.init(AutorecoveringConnection.java:99) at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:911) at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:870) at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:828) at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:966) at com.ydh.util.ConnectionFactoryUtil.getInstance(ConnectionFactoryUtil.java:31) at com.ydh.base.Send.main(Send.java:13)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 'ydh', class-id=10, method-id=40) at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:66) at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:36) at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:398) at com.rabbitmq.client.impl.AMQChannel.privateRpc(AMQChannel.java:244) at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:128) ... 9 moreException in thread "main" java.lang.NullPointerException at com.ydh.base.Send.main(Send.java:14)log4j:WARN No appenders could be found for logger (com.rabbitmq.client.impl.ForgivingExceptionHandler).log4j:WARN Please initialize the log4j system properly.log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
如下操作来解决:
阅读全文
0 0
- RabbitMQ的权限设置
- rabbitmq的权限设置
- 使用RabbitMQ实现带权限的Routing
- rabbitmq 用户,v_host 权限等的添加
- ubuntu下rabbitmq创建用户并设置权限
- rabbitMq设置引起的生产问题
- 权限设置的问题
- IIS权限的设置
- CVS权限的设置
- 数据库的权限设置
- ORACLE的权限设置
- 权限系统的设置
- svn的权限设置
- 访问权限的设置
- chmod 的权限设置
- 设置文件的权限
- sudo权限的设置
- RabbitMq权限问题
- C 和C++的 回调 函数
- 基本的增删改查
- 今日小程序推荐:查名宝-取好名,创好业!
- 已有项目依赖cordovaLib打包后调用插件崩溃问题
- js遍历树算出树的深度
- RabbitMQ的权限设置
- 原码补码反码——复习
- python 列出目录下的文件
- 应用间的相互跳转
- 深入理解操作系统原理之Windows进程管理
- Vue1.0学习总结(1)———指令、事件、绑定属性、模板、过滤器
- package control: install提示There Are No Packages Available For Installation
- https://stackoverflow.com/questions/37505484/cant-exit-git-commit-in-windows
- Mybatis Generator相关xml配置文件含义解析