The installation steps are as follows:
1. Download Redis Extensions
: Https://nodeload.github.com/nicolasff/phpredis/zip/master
2, download down is zip package
Manually unzip the zip Phpredis-master.zip
CD Phpredis-master
Executive phpize
What is phpize for?
Phpize is used to extend the PHP extension module, through the phpize can build PHP plug-in module
3. Configure the path
./configure--with-php-config=/usr/bin/php-config
That's right, but when we got inside, I didn't configure this stuff.
Then you need to manually generate it yourself, but you must first install autoconf
The Mac can be executed first
Brew Install autoconf
After successful installation, execute autoconf and discover that configure has been generated
OK, you can do it.
4. Execute make
sudo make
sudo mkae Install
# This will prompt a path
/usr/lib/php/extensions/no-debug-non-zts-20100525/
Indicates that an extension has been placed at that location
5, Configuration PHP.ini
Open php.ini Join
Extensions=redis.so
Finally restart PHP-FPM, execute phpinfo ()
Discover that Redis is already in the extended list.
Mac System install PHP redis extension