0

I am seeing in the following in my redis log:

[1398] 17 Jun 22:55:53.467 # Opening port 6379: invalid bind address

When trying to start redis with service redis start. However, I confirmed that is nothing bound to port 6379 by running:

lsof -i :6379

I even rebooted the server just to make sure, but still getting invalid bind address. Running:

CentOS release 6.4
Redis 2.6.13

Any idea what could be going on?

3
  • On what address is redis trying to bind? Check your redis.conf
    – gevial
    Jun 18, 2013 at 6:14
  • That was it, was set to localhost, when I changed to 127.0.0.1 started working.
    – Justin
    Jun 18, 2013 at 6:26
  • 1
    Check if the following entry exists in your /etc/hosts 127.0.0.1 localhost if you want to test with your original configuration Jun 18, 2017 at 11:37

1 Answer 1

0

Changed address binding from localhost to 127.0.0.1 in /etc/redis.conf and it started working.

1
  • Is this problem solved? If so, please tap the outline of the tick mark so that it turns solid green. This will mark the issue as solved, so that it does not keep reappearing as an unanswered question. Sep 29, 2021 at 9:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .