linux php7.1 安装redis扩展

redis扩展下载网址 
http://pecl.php.net/package/redis

wget http://101.96.10.64/pecl.php.net/get/redis-3.1.3.tgz
tar zxvf redis-3.1.3.tgz
cd redis-3.1.3
/usr/local/php7/bin/phpize
./configure --with-php-config=/usr/local/php7/bin/php-config
make && make install
vim /usr/local/php7/etc/php.ini
#添加extension = redis.so
php -m
#查看是否支持redis

posted on 2017-11-01 15:06  cn三少<script></script>  阅读(1801)  评论(0编辑  收藏  举报

导航