centos 安装redis php

时间:2023-11-10 13:44:44
$ wget http://download.redis.io/releases/redis-3.0.7.tar.gz
$ tar xzf redis-3.0.7.tar.gz
$ cd redis-3.0.7
$ make
  1. yum install php-devel
  2. 然后编译安装phpredis:
  3. git clone git://github.com/nicolasff/phpredis.git
  4. cd phpredis
  5. phpize
  6. ./configure --with-php-config=/usr/bin/php-config --enable-redis
  7. make
  8. make install

extension=redis.so