zoukankan      html  css  js  c++  java
  • php安装yaf,memcache,memcached模块

    #安装php的yaf模块,参考
    https://www.cnblogs.com/shifu204/p/6743578.html
    https://www.cnblogs.com/jiqing9006/p/9646872.html
    
    CentOS 用 phpize 安装 PHP 扩展出现 Can't find PHP headers in /usr/include/php 原因:https://wangzq-phper.iteye.com/blog/2297792
    
    
    #php的memcache的扩展
    wget http://pecl.php.net/get/memcache-2.2.6.tgz
    tar xf memcache-2.2.6.tgz 
    cd memcache-2.2.6/
    phpize
    ./configure --with-php-config=/usr/bin/php-config
    make && make install
    ls -lrt /usr/lib64/php/modules/memcache.so
    
    加入php.ini里面
    [memcache]
    extension="/usr/lib64/php/modules/memcache.so"
    
    
    #php的memcached扩展:
    cd /usr/local/src
    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
    cd libmemcached-1.0.18
    ./configure --prefix=/usr/local/libmemcached
    make && make install
    
    ./configure --with-php-config=/usr/bin/php-config 
    --with-libmemcached-dir=/usr/local/libmemcached --disable-memcached-sasl
    make && make install
    ll /usr/lib64/php/modules/memcached.so
    
    加入php.ini里面
    [memcached]
    extension="memcached.so"
    
    
    大体流程:
    1、wget xx.包
    2、phpize
    3、./configure --with-php-config=/usr/bin/php-config
    4、make && make install
    5、加入php.ini里面
    
     
    
     
  • 相关阅读:
    UVALive 7509 Dome and Steles
    HDU 5884 Sort
    Gym 101194H Great Cells
    HDU 5451 Best Solver
    HDU 5883 The Best Path
    HDU 5875 Function
    卡特兰数
    UVa 11729 Commando War 突击战
    UVa 11292 The Dragon of Loowater 勇者斗恶龙
    Spark Scala Flink版本对应关系
  • 原文地址:https://www.cnblogs.com/wangkaiok/p/10432588.html
Copyright © 2011-2022 走看看