标签:
1.安装redis扩展:
https://github.com/phpredis/phpredis.git
cd phpredis/
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install
vi /etc/php/php.ini
extension=redis.so
2.安装memcached扩展:
wget https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz
tar -zxvf libmemcached-1.0.18.tar.gz
./configure make && make install
wget http://pecl.php.net/get/memcached-2.2.0.tgz
tar -zxvf memcached-2.2.0.tgz
phpize
./configure make && make install
vi /etc/php/php.ini
extension = memcached.so
3.安装mongo扩展:
wget http://pecl.php.net/get/mongo-1.5.8.tgz
tar -zxvf mongo-1.5.8.tgz
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install
vi /etc/php/php.ini
extension=mongo.so
标签:
原文地址:http://www.cnblogs.com/netRob/p/5105602.html