错误收集
1. 没有对应的交换机在“/”这个虚拟机下
channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no exchange ‘wujianqinjian_rabbitmq_publish’ in vhost ‘/’, class-id=50, method-id=20)
2. 已经声明的队列,修改代码重新运行,会报错
重新运行就会报这样的错!
channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg ‘durable’ for queue ‘wujianqinjian_queue_hello’ in vhost ‘/’: received ‘true’ but current is ‘false’, class-id=50, method-id=10)