memcache的官方主页:http://pecl.php.net/package/memcache
memcached的官方主页:http://pecl.php.net/package/memcached以下是我安装Memcached版本的PHP模块的过程记录:wget http://download.tangent.org/libmemcached-0.48.tar.gz
tar zxf libmemcached-0.48.tar.gz
cd libmemcached-0.48
./configure --prefix=/usr/local/libmemcached --with-memcached
make
make installwget http://pecl.php.net/get/memcached-1.0.2.tgz
tar zxf memcached-1.0.2.tgz
cd memcached-1.0.2
/usr/local/webserver/PHP/bin/PHPize
./configure --enable-memcached --with-PHP-config=/usr/local/webserver/PHP/bin/PHP-config --with-libmemcached-dir=/usr/local/libmemcached
make
make install在PHP.ini中加入
extension=memcached.so
完成另:
在安装libmemcached时,如果只用./configure,可能会提示:
checking for memcached… no
configure: error: “could not find memcached binary”两者使用起来几乎一模一样。
<div class="codetitle"><a style="CURSOR: pointer" data="22025" class="copybut" id="copybut22025" onclick="doCopy('code22025')"> 代码如下: