I first install the LNMP one-click package, which contains the redis3.1.3 expansion package,
cd lnmp1.4/src/redis3.1.3/
execute phpize build configuration,
/ usr/local/php7.15/bin/phpize
then. / configure-- with-php-config=/usr/local/php7.15/bin/php-config
make&&make install
check whether the redis.so file exists
/ usr/local/php7.15/lib/php/extensions/no-debug-non-zts-20160303/
configure php.ini
extension=redis.so
restart php-fpm
Direct php-m also does not show that the installation was successful.
when I check phpinfo ();, I do see the corresponding extension directory. Why can"t I install it successfully?
extension_dir()
;extension_dir=/usr/local/php7.15/lib/php/extensions/no-debug-non-zts-20160303/
redislnmp