一、安裝igbinary擴展
wget http://pecl.php.net/get/igbinary-1.2.1.tgz
tar zxvf igbinary-1.2.1.tgz
cd igbinary-1.2.1
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install
二、從新編譯phpredis擴展
wget http://download.redis.io/releases/redis-2.6.14.tar.gz
tar zxvf redis-2.6.14.tar.gz
cd redis-2.6.14
/usr/local/php/bin/phpize
./configure --enable-redis-igbinary --with-php-config=/usr/local/php/bin/php-config
make
make install
三、php.ini加載擴展
vim /usr/local/php/etc/php.ini 2 加上: 3 extensions=igbinary.so (加載redis 擴展以前) 4 extensions=redis .so
四、重啓配置文件
service php-fpm restart