基于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
重起一下服务就可以了。

发表评论

你必须 登录 才能发表评论.