php 安装memcached扩展
php 扩展memcached 需要先安装libmemchaced,memcached的1.2.4及以上增加了CAS(Check and Set)协议,对于同一key的多进行程的并发处理问题。 具体操作如下: 进入 https://launchpad.net/libmemcached/+download 进行下载 $ cd libmemcached-xx $ ./configure --with-memcache #缺少--with-memcache的话,将提示configure: error: "could not find memcached binary" $ sudo make && sudo make install 安装memached扩展 $~/server/php/bin/phpize $./configure --with-php-config=~/server/php/bin/php-config --enable-memc