Php 7 compiles and installs redis successfully, but extension=redis.so does not take effect

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

Mar.10,2021

ubuntu

sudo apt-get install php-igbinary

sudo apt-get install php-redis


my MAMP environment is also compiled successfully, the reference path is correct, php- m and phpinfo (); can't see it, and there is no problem with mongodb.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b32731-2be0a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b32731-2be0a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?