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