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
原文地址:https://blog.51cto.com/13293070/2429237
时间: 2024-10-10 16:52:00