Redis and Redis extension-----xampp installed under Mac

Source: Internet
Author: User
Tags curl git clone install redis

First step: Install basic support


Curl-o http://mirrors.kernel.org/gnu/m4/m4-1.4.13.tar.gz
TAR-XZVF m4-1.4.13.tar.gz
CD m4-1.4.13
./configure–prefix=/usr/local
Make
sudo make install


Cd..
Curl-o http://mirrors.kernel.org/gnu/autoconf/autoconf-2.65.tar.gz
TAR-XZVF autoconf-2.65.tar.gz
CD autoconf-2.65
./configure–prefix=/usr/local
Make

sudo make install

For details see: http://blog.sina.com.cn/s/blog_586c261a0101jil1.html




Step Two: Install Redis


For details see: http://my.oschina.net/Twitter/blog/287544



Step Three: Expand

git clone Https://github.com/nicolasff/phpredis

CD Phpredis

Sudo/applications/xampp/xamppfiles/bin/phpize
sudo macosx_deployment_target=10.7 cflags= "-arch i386-arch x86_64-g-os-pipe-no-cpp-precomp" CCFLAGS= "-arch i386-arch X86_64-g-os-pipe "cxxflags="-arch i386-arch x86_64-g-os-pipe "ldflags="-arch i386-arch x86_64-bind_at_load "./co Nfigure--enable-redis--with-php-config=/applications/xampp/xamppfiles/bin/php-config
sudo make && sudo make install


Then modify the php.ini (add: Extension=redis.so,xampp under the/etc/php.ini), restart the XAMPP service will be ready.



This article is from the "Flail Blog" blog, please be sure to keep this source http://jhomephper.blog.51cto.com/8558055/1692761

Redis and Redis extension-----xampp installed 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.