1.yum添加epel源

yum install epel-release


2.安装yum
 yum install redis

3.Redis 服务端配置——Could not connect to Redis at 127.0.0.1:6379: Connection refused

 vim  /etc/redis.conf

找到redis.conf 并修改 daemonize no(第128行) 为 daemonize yes 

:set number(显示行号)

. 4.开启客户端要确保服务端启动       


  redis-server /etc/redis.conf

5.redis-server -v 查看版本

redis-server /etc/redis.conf  启动

redis-cli ping 
PONG

测试启动 redis-cli ping 返回PONG,启动成功。

 

redis-cli  链接

 

相关文章:

  • 2021-09-04
  • 2021-12-31
  • 2021-07-28
  • 2021-04-02
  • 2021-05-25
  • 2021-11-12
  • 2021-12-31
猜你喜欢
  • 2021-10-31
  • 2021-09-01
  • 2021-12-18
  • 2021-10-20
  • 2022-01-14
相关资源
相似解决方案