[AMQP Connection 127.0.0.1:5672] ERROR org.springframework.amqp.rabbit.connection.CachingConnectionFactory - Channel shutdown: channel error; protocol method: #method<channel.close>(reply-code=403, reply-text=ACCESS_REFUSED - access to exchange 'preventvirus.log.exchange' in vhost '/' refused for user 'mquser', class-id=60, method-id=40)
造成RabbitMQ无法创建队列
解决方案:
rabbitmqctl set_permissions -p / mquser .* .* .*
ACCESS_REFUSED
是权限设置的问题,仔细对比如下图是否正常。