码迷,mamicode.com
首页 > Web开发 > 详细

Linux下编译安装php扩展

时间:2016-01-06 15:47:14      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:

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

Linux下编译安装php扩展

标签:

原文地址:http://www.cnblogs.com/netRob/p/5105602.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!