Configure phpredis extension in Mac, macphpredis extension _ PHP Tutorial

Source: Internet
Author: User
Configure phpredis extension and macphpredis extension in Mac. Configure the phpredis extension in Mac. macphpredis extension recently transfers the development environment from windows to Mac, and all environments must be reconfigured. Mac is not familiar with unix systems, so the phpredis extension and macphpredis extension are configured in Mac.

Recently, I switched the development environment from windows to Mac, and all the environments should be reconfigured. Mac is not familiar with unix systems, so many problems have been encountered.

Install phpredis extension:

First, download the phpredis extension package at the following address:

Https://nodeload.github.com/nicolasff/phpredis/zip/master (we recommend that you manually download and then copy ).

Then you can run the command to enter the folder.

1 cd phpredis-master/2 phpize command (the command may have problems. for the solution, see the end of the article) 3. /configure -- with-php-config =/usr/bin/php-config 4 make 5 sudo make install (execute the preceding command in sequence) 6 # at this time will prompt a path 7 #/usr/lib/php/extensions/no-debug-non-zts-20100525/8 # indicates that the extension has been placed in this location 9 vim/etc/php. ini10 # add the following content 11 extension = redis. so12 # restart apache13 sudo apachectl restart14 # view the extension installation status 15 php-m | grep redis16 # redis indicates that the installation is successful

Note that executing the phpize command may cause errors. see: http://www.cnblogs.com/tianshuowang/p/4686156.html

Reference: http://my.oschina.net/Twitter/blog/287544

Ghost recently switched the development environment from windows to Mac, and all the environments should be reconfigured. Mac is not familiar with unix systems, so...

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.