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