PHP7安装redis扩展

时间:2024-06-13 21:36:14

PHP7安装redis扩展
优秀开源项目:http://github.crmeb.net/u/liaofei
yum -y install git 
git clone https://github.com/nicolasff/phpredis
/usr/local/php/bin/phpize
cd /usr/local/src/ 
./configure --with-php-config=/usr/local/php/bin/php-config
find / -name phpize

make 
make install
make test 
vim /usr/local/php/etc/php.ini 
添加 :extension="redis.so"
/etc/init.d/php-fpm restart
php -m