php redis扩展
wget http://pecl.php.net/get/redis-2.2.5.tgz
tar xvf redis-2.2.5.tgz -C /usr/local/src
cd /usr/local/src/redis-2.2.5
#开始编译安装
phpize
./configure --with-php-config=/usr/local/php56/bin/php-config
make && make install
#把redis.so库添加到php.ini配置文件中
vi /usr/local/php56/etc/php.ini
extension=/usr/local/php56/lib/php/extensions/no-debug-non-zts-20131226/redis.so