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

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_32285991/article/details/82663178

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

猜你喜欢

转载自blog.csdn.net/qq_32285991/article/details/82663178