v2-dd.jpg
官网下载对应版本扩展包:

https://pecl.php.net/package/redis

安装:

cd /usr/local/src/
wget https://pecl.php.net/get/redis-3.1.1.tgz
tar xvf redis-3.1.1.tgz
cd redis-3.1.1
#yum install -y autoconf m4
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install
echo "extension = redis.so" >> /usr/local/php/etc/php.ini
service php-fpm restart

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code