连接不上redis 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

解决方案:

1. 修改redis.conf文件

                   cd /usr/local/redis-4.0.11

                   vim redis.conf

                   修改 daemonize no 为 daemonize yes

2. 开启客户端要确保服务端启动redis-server /usr/local/redis-4.0.11/redis.conf

3.  redis-cli

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

相关文章: