赞
踩
启动项目后项目正常运行,并且RabbitMQ能够正常生产和消费消息,但是运行一段时间后“莫名其妙”报错,报错信息如下(报错重复很多次,以下信息为简化后主要报错信息):
2019-06-15 12:19:48 WARN [Class:c.r.c.i.ForgivingExceptionHandler->Thread:AMQP Connection 47.96.88.182:5672] An unexpected connection driver error occured (Exception message: Connection reset)
2019-06-15 12:19:48 ERROR [Class:o.s.a.r.c.CachingConnectionFactory$DefaultChannelCloseLogger->Thread:AMQP Connection 47.96.92.182:5672] Channel shutdown: connection error
最直观主要报错提示为:发生意外连接驱动程序错误(异常消息:连接重置)和通道关闭:连接错误
启动rabbit server,访问 http://localhost:15672/ ,使用默认账户 guest / guest 可以正常访问
通过命令授权
语法: set_permissions [-p <vhostpath>] <user> <conf> <write> <read>
执行: rabbitmqctl set permissions -p / admin .* .* .* 完成对admin的授权,然后启动项目就正常了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。