1、安装igbinary扩展
wget http://pecl.php.net/get/igbinary-1.2.1.tgztar zxvf igbinary-1.2.1.tgzcd igbinary-1.2.1/usr/local/php/bin/phpize./configure --with-php-config=/usr/local/php/bin/php-configmakemake install
2、重新编译phpredis扩展
wget http://download.redis.io/releases/redis-2.6.14.tar.gztar zxvf redis-2.6.14.tar.gzcd redis-2.6.14/usr/local/php/bin/phpize./configure --enable-redis-igbinary --with-php-config=/usr/local/php/bin/php-configmakemake install
3、php.ini加载扩展
vim /usr/local/php/etc/php.ini 2 加上: 3 extensions=igbinary.so (加载redis 扩展之前) 4 extensions=redis .so
4、重启配置文件
service php-fpm restart