$ 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
- yum install php-devel
-
- 然后编译安装phpredis:
-
- git clone git://github.com/nicolasff/phpredis.git
-
- cd phpredis
-
- phpize
-
- ./configure --with-php-config=/usr/bin/php-config --enable-redis
-
- make
-
- make install
extension=redis.so
centos 安装redis php
原文:http://www.cnblogs.com/terryguan/p/5254864.html