Home  >  Article  >  Backend Development  >  php install redis extension, phpredis extension_PHP tutorial

php install redis extension, phpredis extension_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:09:48989browse

php install redis extension, phpredis extension

You can go to http://code.google.com/p/redis/downloads/list 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 create the redis management directory yourself without executing make install. , of course I like to put redis in the system default directory.
cp redis.conf /etc/
vi /etc/redis.conf
daemonize no
daemonize yes
Change no to yes, let redis run in the background

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


Compilation failed 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 the configuration file and add it
vim /data/klj/php/etc/php.ini

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/941173.htmlTechArticlephp to install redis extension, you can go to http://code.google.com/p/redis/ for phpredis extension Downloads/list is the address to find the nearest download wget http://redis.googlecode.com/files/redis-2.6.1...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn