<code>cd /Applications/MAMP/bin/php/php5<span>.6</span><span>.2</span>/include/php cd php <span>.</span>/configure <span>--</span>without<span>-iconv</span>cd phpredis <span>.</span>/configure <span>--</span><span>with</span><span>-php</span><span>-config</span><span>=</span>/Applications/MAMP/bin/php/php5<span>.6</span><span>.2</span>/bin/php<span>-config</span>sudo make sudo cp <span>-p</span> modules/redis<span>.</span>so /Applications/MAMP/bin/php/php5<span>.6</span><span>.2</span>/lib/php/extensions/no<span>-debug</span><span>-non</span><span>-zts</span><span>-</span><span>20131226</span></code>
The above introduces MAMP to install php redis, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.