Redis bind to more than one IP

前端 未结 7 1027
生来不讨喜
生来不讨喜 2020-12-29 01:15

In the redis.conf the normal setting is

bind 127.0.0.1

I want redis to listen to another ip too (say my local development address)

I tried

b

7条回答
  •  甜味超标
    2020-12-29 02:08

    I tried finding that answer too, as it stands, it's not possible to do this, I found this while searching for the answer on multiple (but not all interfaces). This is what turned up http://code.google.com/p/redis/issues/detail?id=497 stating it will not be supported by redis itself.

    In conjunction with haproxy that makes it impossible to put it in front of redis in one go. You need to use a different port, or the other or choose to bind on 1 IP.

提交回复
热议问题