1.下载phpredis,解压并进入目录,在目录下运行phpize
/usr/local/php/bin/phpize |
./configure --enable-redis-igbinary --with-php-config=/usr/local/php/bin/php-config |
make && make install |
2.在php.ini下添加extension="redis.so"
时间: 2025-01-04 16:05:42
1.下载phpredis,解压并进入目录,在目录下运行phpize
/usr/local/php/bin/phpize |
./configure --enable-redis-igbinary --with-php-config=/usr/local/php/bin/php-config |
make && make install |
2.在php.ini下添加extension="redis.so"