连接不上redis:Could not connect to Redis at 127.0.0.1:6379: Connection refused

太过爱你忘了你带给我的痛 2022-05-13 11:22 276阅读 0赞

连接不上redis Could not connect to Redis at 127.0.0.1:6379: Connection refused

70

解决方案:

  1. 修改redis.conf文件

    1. cd /usr/local/redis-4.0.11
    2. vim redis.conf
    3. 修改 daemonize no daemonize yes
  2. 开启客户端要确保服务端启动redis-server /usr/local/redis-4.0.11/redis.conf

  3. redis-cli

70 1

发表评论

表情:
评论列表 (有 0 条评论,276人围观)

还没有评论,来说两句吧...

相关阅读