Could not connect to Redis at 127.0.0.1:6379: Connection refused with homebrew

前端 未结 12 1559
灰色年华
灰色年华 2020-12-22 22:10

Using homebrew to install Redis but when I try to ping Redis it shows this error:

Could not connect to Redis at 127.0.0.1:6379: Connection refused

12条回答
  •  天命终不由人
    2020-12-22 22:49

    I just had this same problem because I had used improper syntax in my config file. I meant to add:

    maxmemory-policy allkeys-lru

    to my config file, but instead only added:

    allkeys-lru

    which evidently prevented Redis from parsing the config file, which in turn prevented me from connecting through the cli. Fixing this syntax allowed me to connect to Redis.

提交回复
热议问题