centos 安装redis php

$ wget http://download.redis.io/releases/redis-3.0.7.tar.gz
$ tar xzf redis-3.0.7.tar.gz
$ cd redis-3.0.7
$ make


  1. yum install php-devel  
  2.   
  3. 然后编译安装phpredis:  
  4.   
  5. git clone git://github.com/nicolasff/phpredis.git  
  6.   
  7. cd phpredis  
  8.   
  9. phpize  
  10.   
  11. ./configure --with-php-config=/usr/bin/php-config --enable-redis  
  12.   
  13. make  
  14.   
  15. make install  

extension=redis.so 

原文地址:https://www.cnblogs.com/terryguan/p/5254864.html