下面将介绍安装PHP的memcached客户端安装步骤
1、下载安装libmemcached客户端 官网地址:http://libmemcached.org/libMemcached.html
2、下载安装memcached 官网地址:http://pecl.php.net/package/memcached
PHP.net/get/memcached-2.2.0b1.tgz
$tar -zxvf memcached-2.2.0b1.tgz
$cd memcached-2.2.0b1
$sudo /usr/local/PHP/bin/PHPize
$./configure --enable-memcached --with-PHP-config=/usr/local/PHP/bin/PHP-config --with-libmemcached-dir=/usr/local/libmemcached --disabled-memcached-sasl
$sudo make
$sudo make install
Nginx restart
$sudo /etc/init.d/PHP restart