Linux中安装redis的phpredis扩展

下载phpredis扩展

http://pecl.php.net/package/redis

wget http://pecl.php.net/get/redis-4.0.2.tgz

需要环境配置文件

/user/local/php/bin/phpize

会生成configure文件

错误解决
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script

yum -y install autoconf

为redis扩展做configure配置

./configure --with-php-config=/usr/local/php/bin/php-config
make && make install




猜你喜欢

转载自www.cnblogs.com/qinsilandiao/p/10872306.html