Mamp Environment installation Redis under Mac

Source: Internet
Author: User
Tags php redis tar unzip git clone

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.