php7安装redis扩展

php7安装redis扩展

本站下载:phpredis-php7.zip

unzip phpredis-php7.zip
cd phpredis-php7
/usr/local/php7/bin/phpize
./configure --with-php-config=/usr/local/php7/bin/php-config
make
make install

修改php.ini

vim /usr/local/php7/lib/php.ini

在末尾加上:

extension_dir = "/usr/local/php7/lib/php/extensions/no-debug-non-zts-20151012/"
extension = redis.so

重启php,查看phpinfo是否生效

php7安装redis扩展

 

分享