Redis - PHP7扩展

下载 https://github.com/phpredis/phpredis/tree/php7

解压 unzip phpredis-php7.zip

phpize #用phpize生成configure配置文件

./configure 配置

make #编译

make install #安装

安装完成后将出现的安装路径添加到php.ini中:

extension_dir = "/usr/lib/php/20151012"

extension = redis.so

重启服务器,查看phpinfo,是不是搞定.

猜你喜欢

转载自www.cnblogs.com/pzblog/p/9087572.html