启动redis:  redis-server ../redis.conf

redis启动成功后

执行命令行redis-cli报:Could not connect to Redis at 127.0.0.1:6379: Connection refused错误

【redis】Could not connect to Redis at 127.0.0.1:6379: Connection refused

 

 

那是因为redis安装路径下的redis.conf文件配置未修改:

redis.conf文件中:

将daemonize no 修改为 daemonize yes

重启后 即恢复正常

相关文章:

  • 2021-06-07
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-12
  • 2022-12-23
  • 2022-12-23
  • 2022-01-30
  • 2021-05-18
相关资源
相似解决方案