centos php7 install redis extension (redis already installed)

Download redis expansion pack, there is a corresponding extension pecl php version redis above https://pecl.php.net/package/redis
 wget https://github.com/nicolasff/phpredis/archive/3.1.0.tar.gz (I be directly / operation)

Extracting tar xvzf 3.1.0.tar.gz

cd 3.1.0.tar.gz

Then (phpize find the directory where the whereis phpize) executed in the current directory / usr / bin / phpize

Then generates ./configure --with-php-config = / usr / bin / php-config (whereis php-config locate the directory php-config)

然后 make && make install

Then make test

Then add the inside php.ini extension = redis.so (see on Baidu some redis, but I was redis.so, I extended directory search is redis.so) of

Then take a look at phpinfo () or php -m to see if the installation was successful

Released seven original articles · won praise 0 · Views 1361

Guess you like

Origin blog.csdn.net/Vency__/article/details/104059449
Recommended