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