更多版本下载地址:https://pecl.php.net/package/redis
安装步骤
bash
wget http://pecl.php.net/get/redis-2.2.7.tgz
tar -zxvf redis-2.2.7.tgz
cd redis-2.2.7
phpize
./configure --with-php-config=/usr/local//php/5.6.40/bin/php-config
make && make install
增加配置 php.ini
bash
extension=redis.so
最后重启 php-fpm
查看
bash
phpinfo();
参考