首页 > 技术文章 > centos6.5 yum安装redis

qq1069284034 2018-04-08 18:08 原文

  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  链接

推荐阅读