RabbitMQ - Throuble Shooting

1、rabbitmq使用guest用户连接报错,rabbitmq日志报错信息为 "guest" user can only connect via localhost"

rabbitmq官网上有解决方法:

wKioL1S2HPSzGS6KAAGbIoErOic199.jpg

注:在centos系统是可以的,ubuntu下使用guest用户连接是报错的。


2、haproxy代理rabbitmq(openstack HA环境下),经常报这个错:

。。。
2015-04-06 20:12:45.187 18618 TRACE oslo.messaging._drivers.impl_rabbit     (40, 11),  # Channel.exchange_declare_ok
2015-04-06 20:12:45.187 18618 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/amqp/abstract_channel.py", line 67, in wait
2015-04-06 20:12:45.187 18618 TRACE oslo.messaging._drivers.impl_rabbit     self.channel_id, allowed_methods)
2015-04-06 20:12:45.187 18618 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/amqp/connection.py", line 237, in _wait_method
2015-04-06 20:12:45.187 18618 TRACE oslo.messaging._drivers.impl_rabbit     self.method_reader.read_method()
2015-04-06 20:12:45.187 18618 TRACE oslo.messaging._drivers.impl_rabbit   File "/usr/lib/python2.7/site-packages/amqp/method_framing.py", line 189, in read_method
2015-04-06 20:12:45.187 18618 TRACE oslo.messaging._drivers.impl_rabbit     raise m
2015-04-06 20:12:45.187 18618 TRACE oslo.messaging._drivers.impl_rabbit IOError: Socket closed

解决方法:

参考这里 http://way4ever.com/?p=3121

http://www.rabbitmq.com/access-control.html

haproxy代理rabbitmq设置



你可能感兴趣的:(rabbitmq)