解决redis-cli连接时Could not connect to Redis at 127.0.0.1:6379: Connection refused
原因:服务端未启动
[root@localhost bin]# ./redis-server redis.conf
[root@localhost bin]# redis-cli
-bash: redis-cli: 未找到命令
[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
原因:服务端未启动
[root@localhost bin]# ./redis-server redis.conf
[root@localhost bin]# redis-cli
-bash: redis-cli: 未找到命令
[root@localhost bin]# ./redis-cli
127.0.0.1:6379>