基于libmemcached,PHP扩展memcached的安装

基于libmemcached,PHP扩展memcached的安装

1>下载libmemcached

2>tar -zxvf libmemcached-0.48.tar.gz

3> cd libmemcached-0.48.tar.gz

4>./configure –with-memcached //如果不加–with-memcached,会提示你checking for memcached… no configure:could not find memcached binary

5>make && make install

安装memcached

tar zxvf memcached-1.0.2.tar.gz

cd memcached-1.0.2

/usr/local/lamp/php/bin/phpize

./configure –enable-memcached –with-php-config=/usr/local/lamp/php/bin/php-config –with-libmemcached-dir=/usr/local/lamp/libmemcached

make && make install

vi /etc/php.ini

加上extension=memcached.so重起一下服务就可以了。

Related posts:

  1. phpize使用
  2. Redhat6 LAMP配置全过程