我已经在 Linux 机器上安装了 Rabbitmq 3.4,它在5672
端口上运行。当我尝试声明交换时,它提示我出错。
./rabbitmqadmin declare exchange --vhost=localhost name=SAMPLE_EXCHANGE type=direct
使用 rabbitmqadmin 的 python 脚本,它位于/usr/local/bin/
错误 -
Traceback (most recent call last):
File "/usr/local/bin/rabbitmqadmin", line 953, in <module>
main()
File "/usr/local/bin/rabbitmqadmin", line 389, in main
method()
File "/usr/local/bin/rabbitmqadmin", line 569, in invoke_declare
self.put(uri, json.dumps(upload))
File "/usr/local/bin/rabbitmqadmin", line 415, in put
return self.http("PUT", "/api%s" % path, body)
File "/usr/local/bin/rabbitmqadmin", line 441, in http
resp = conn.getresponse()
File "/usr/lib64/python2.6/httplib.py", line 990, in getresponse
response.begin()
File "/usr/lib64/python2.6/httplib.py", line 391, in begin
version, status, reason = self._read_status()
File "/usr/lib64/python2.6/httplib.py", line 349, in _read_status
line = self.fp.readline()
File "/usr/lib64/python2.6/socket.py", line 433, in readline
data = recv(1)
socket.error: [Errno 104] Connection reset by peer
帮我解决这个错误,如果需要,将提供更多信息。