PHP install Redis extension, Phpredis extended _php Tutorial

Source: Internet
Author: User

PHP installation Redis extension, Phpredis extension


You can go to http://code.google.com/p/redis/downloads/list this address to find the latest download
wget http://redis.googlecode.com/files/redis-2.6.14.tar.gz
Tar zxf redis-2.6.14.tar.gz && CD redis-2.6.14
Make
Make install
You can also set up your Redis management directory without executing make install, and of course I like to have Redis in the system default directory.
CP redis.conf/etc/
Vi/etc/redis.conf
Daemonize No
Daemonize Yes
Change No to Yes to let Redis background run

Get Php-redis Extension
Wget-c http://pecl.php.net/get/redis-2.2.4.tgz
TAR-ZXVF redis-2.2.4.tgz
CD redis-2.2.4
/data/klj/php/bin/phpize
./configure--with-php-config=/data/klj/php/bin/php-config


Compile failure missing M4 autoconf
wget http://ftp.gnu.org/gnu/m4/m4-1.4.17.tar.gz
TAR-ZXVF m4-1.4.17.tar.gz
CD m4-1.4.17
./configure
Make
Make install


wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
TAR-ZXVF autoconf-2.69.tar.gz
CD autoconf-2.69
./configure
Make && make install
Cd.. /redis-2.2.4

/data/klj/php/bin/phpize
./configure--with-php-config=/data/klj/php/bin/php-config
Make && make install

cd/data/klj/php/lib/php/extensions/no-debug-non-zts-20131226/
Modify configuration file Join
Vim/data/klj/php/etc/php.ini

http://www.bkjia.com/PHPjc/941173.html www.bkjia.com true http://www.bkjia.com/PHPjc/941173.html techarticle PHP installation Redis extension, Phpredis extension you can go to http://code.google.com/p/redis/downloads/list this address to find the most recent download wget/HTTP/ redis.googlecode.com/files/redis-2.6.1 ...

  • 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.