memcache在xampp下的安装

1、下载memcache,地址wget http://memcached.googlecode.com/files/memcached-1.4.14.tar.gz

2、解压tar zxf memcached-1.4.14.tar.gz

3、cd memcached-1.4.14

4、./configure --prefix=/opt/memcached-1.4.14

5、make

6、make install

7、下载php扩展包,之前下载的是最新的3.0.6,总是提示失败,最后下载了wget http://pecl.php.net/get/memcache-2.2.6.tgz

8、解压 tar zxf memcache-2.2.6.tgz

9、cd memcache-2.2.6

10、 /opt/lampp/bin/phpize

11、./configure --enable-memcache --with-php-config=/opt/lampp/bin/php-config --with-zlib-dir

12、make

13、make install

14、vi /opt/lampp/etc/php.ini

15、/opt/lampp/lampp restart

测试成功,ok

参考:http://hi.baidu.com/bsbgong/blog/item/d9e08b34b6298051241f1426.html

http://www.centos.bz/2011/11/linux-install-php-memcache/

http://hi.baidu.com/hivemind/item/1f5ca1ba890ad2a7ebba9364

xampp for linux 下安装 Memcache 支持 64位

http://www.29ma.cn/20110723/779/

原文地址:https://www.cnblogs.com/coolid/p/2648816.html