$ 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