# wget http://pecl.php.net/get/redis-4.2.0.tgz
# tar -zxvf redis-4.2.0.tgz
# cd redis-4.2.0
# /usr/local/php5.6/bin/phpize
# ./configure --with-php-config=/usr/local/php5.6/bin/php-config
# make
# make test
# make install
复制代码
编辑php.ini 加入扩展 extension = /usr/local/php5.6/lib/php/extensions/no-debug-non-zts-20131226/redis.so
重启php-fpm 测试查看redis扩展是否正常加载