欢迎光临
一起探讨学习进步

启动redis-cli之后提示Could not connect to Redis at 127.0.0.1:6379: Connection refused

装好了redis,在启动redis-cli之后提示Could not connect to Redis at 127.0.0.1:6379: Connection refused

这说明redis服务端没有成功启动

首先运行redis服务端

[root@localhost bin]# ./redis-server redis.conf

然后在运行客户端看看

[root@localhost bin]# ./redis-cli
127.0.0.1:6379>

是不是可以了呢?

未经允许不得转载:启动redis-cli之后提示Could not connect to Redis at 127.0.0.1:6379: Connection refused

评论 0

评论前必须登录!