centos6.5 yum安装redis


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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM