Php installation of redis extension, phpredis extension _ PHP Tutorial

Source: Internet
Author: User
Tags install redis
Php installs the redis extension and phpredis extension. Php install redis extension, phpredis extension you can go to code. google. compredisdownloadslist this address to find the latest download wgetredis. googlecode. comfilesredis-2.6.1 php install redis extension, phpredis extension

You can go to http://code.google.com/p/redis/downloads/listto find the nearest download address.
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 create a redis Management Directory without executing make install. of course, I like to place redis in the default directory of the system.
Cp redis. conf/etc/
Vi/etc/redis. conf
Daemonize no
Daemonize yes
Change "no" to "yes" to run redis in the background.

Get php-redis extension
Http://pecl.php.net/get/redis-2.2.4.tgz wget-c
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


M4 autoconf missing in compilation failure
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 to add
Vim/data/klj/php/etc/php. ini

Http://www.bkjia.com/PHPjc/941173.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/941173.htmlTechArticlephp install redis extension, phpredis extension you can go to http://code.google.com/p/redis/downloads/listthis address to find the nearest 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.