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