I am learning how to use rabbitMQ. I am running the rabbit-MQ server on my MacBook and trying to connect to the python client. I followed the installation instructions here . And now I am following the tutorial shown here .
The manual says that to run this client:
#!/usr/bin/env python import pika connection = pika.BlockingConnection(pika.ConnectionParameters('localhost')) channel = connection.channel()
However, when I do this, I get the following error when trying to establish a connection:
WARNING:pika.adapters.base_connection:Connection to ::1:5672 failed: [Errno 61] Connection refused
As you can see, the rabbitmq server is working fine in another window:
% rabbitmq-server RabbitMQ 3.3.1. Copyright (C) 2007-2014 GoPivotal, Inc.
How to establish this connection? What is the problem?
source share