Mac System install PHP redis extension

Source: Internet
Author: User
Tags configuration php download redis php redis

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

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.