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

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

redis启动成功后

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

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

redis.conf文件中:

将daemonize no 修改为 daemonize yes

重启后 即恢复正常

猜你喜欢

转载自www.cnblogs.com/panie2015/p/12192198.html