zoukankan      html  css  js  c++  java
  • Linux下编译安装php扩展

    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

  • 相关阅读:
    学生管理系统
    python集合(方法)
    python字典(包括方法)
    python元组(包括方法)
    python列表(包含列表方法)
    python索引
    python三元运算
    python while循环
    python-if语句
    python数据类型和运算符
  • 原文地址:https://www.cnblogs.com/netRob/p/5105602.html
Copyright © 2011-2022 走看看