centos7 php安装redis扩展

源码地址:https://github.com/phpredis/phpredis/releases

下载对应的版本wget https://github.com/phpredis/phpredis/archive/4.2.0RC2.zip

解压:unzip 4.2.0RC2.zip

使用phpizp生成configure:  /data/server/php/bin/phpize (PHP的phpize地址)

与PHP进行关联:./configure --with-php-config=/data/server/php/bin/php-config

然后:make -j 

make install

生成redis.so文件

位置:/data/server/php/lib/php/extensions/no-debug-non-zts-20170718/

打开php.ini 写入extension=redis

猜你喜欢

转载自blog.csdn.net/weixin_40719395/article/details/84101977
今日推荐