1、 下载并解压Memcache扩展包文件(要和当前PHP版本对应),如下:Wget-c http://pecl.php.net/get/memcache-3.0.6.tgzTar xzvf memcache-3.0.6.tgz Cd memcache-3.8.6
2、(二)执行phpize扩展安装程序,假设phpize的路径为/usr/local/php/bin/phpize,具体的路径得根据自己的环境修改。如下:/usr/local/php/bin/phpize
3、(三)开始安装扩展MemCache:./configure –enable-mem罕铞泱殳cache –with幻腾寂埒-php-config=/usr/local/php/bin/php-config –with-zlib-dirMake&& make install
4、(四)最后修改php.ini文件,在zend之前加入[memcache]Extension_dir=”/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613”;Extension=memcache.so