首页 > 数据库 >解决redis-cli连接时出现Could not connect to Redis at 127.0.0.1:6379: Connection refused

解决redis-cli连接时出现Could not connect to Redis at 127.0.0.1:6379: Connection refused

时间:2023-02-14 11:34:48浏览次数:52  
标签:bin 127.0 cli 0.1 redis localhost


解决redis-cli连接时Could not connect to Redis at 127.0.0.1:6379: Connection refused

解决redis-cli连接时出现Could not connect to Redis at 127.0.0.1:6379: Connection refused_Redis

原因:服务端未启动

[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_redis_02

标签:bin,127.0,cli,0.1,redis,localhost
From: https://blog.51cto.com/u_15258465/6056426

相关文章