Redis connection refused error

476 views
Skip to first unread message

redisuser

unread,
Oct 14, 2016, 11:19:38 AM10/14/16
to Redis DB
Hello,

I have just started out with Redis. I have a basic C program using hiredis to write and fetch keys to and from the Redis server running on my Linux machine.
I could successfully get my program to run when redis server and my client program were running on localhost.
However, I wanted to deploy my program onto a cluster node where the redis server runs on one node and client runs on another.
To do so, I have commented out the bind statement in redis.conf and running the Redis server as a daemon process.
On running my client, I see that it is unable to connect to the server and the connection is refused.

PS: I have read about Redis Cluster, but for now I just wanted to get my basic setup running before I try to use Redis Cluster.

Yuri Paes Leme

unread,
Oct 14, 2016, 12:34:03 PM10/14/16
to Redis DB
With version of redis did you installed? Did you comment out too the line of the config with the parameter : 
"protected-mode no" ?
There are any firewalls?

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.

hva...@gmail.com

unread,
Oct 14, 2016, 1:52:10 PM10/14/16
to Redis DB
The redis-server's "bind" statement needs to specify either the machine's particular IP address or the symbolic address "0.0.0.0".  The symbolic address is more common in software configurations.  It means "Let me listen on all the IP addresses on this server".

For example:

  bind 10.1.2.34
  bind 54.198.63.5

  bind 0.0.0.0
Reply all
Reply to author
Forward
0 new messages