# 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.sophp
重啓php-fpm 測試查看redis擴展是否正常加載redis