First step: Installing Redis
1. Official website http://redis.io/Download the latest stable version, here is 3.2.8
2. TAR-ZXF Redis-3.2.8.tar Unzip the file
3. Enter the extracted directory CD redis-3.2.8
4. Make
5. Start the service Src/redis-server
Step two: Install the PHP redis extension
1. Download PHP
2. Put the downloaded PHP file under mamp/bin/php/php5.6.30/include/php (Include no PHP folder can create a new one)
3. Enter mamp/bin/php/php5.6.30/include/php and run./configure
4. Download the Phpredis file and run git clone https://github.com/nicolasff/phpredis.git
5. Go to the Phpredis directory and run: /.. /.. /bin/phpize
6. Run./configure--with-php-config=/applications/mamp/bin/php/php5.6.30/bin/php-config
7. Run sudo make, and after successful compilation, it will generate redis.so under Phpredis/modules and copy it to/applications/mamp/bin/php/php5.6.30/lib/php/extensions/ no-debug-non-zts-**** this directory
8. Modify PHP.ini, search "extension=" to add a line after "extension=redis.so", Save and restart Mamp
9. Check the phpinfo to see if the installation was successful.
Mamp Environment installation Redis under Mac