php7安装redis扩展PhpRedis

1.git clone https://github.com/phpredis/phpredis.git
2./usr/local/php7/bin/phpize
提示缺autoconf
apt-get install m4
apt-get install autoconf
3../configure 报错,找不到php-config
./configure –with-php-config=/usr/local/php7/bin/php-config
4.make && make install 报错,文件各种找不到
默认分支没法给php7编译,换分支
5.git clone -b php7 https://github.com/phpredis/phpredis.git
6.重复之前步骤
7.编译通过
继续阅读php7安装redis扩展PhpRedis