基于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配置全过程

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-26
  • 2021-12-31
  • 2021-11-30
  • 2021-05-06
猜你喜欢
  • 2022-12-23
  • 2022-02-25
  • 2022-12-23
  • 2022-02-19
相关资源
相似解决方案