MemCache在Linux系统下的安装方法

2026-02-15 20:15:00

1、  下载并解压Memcache扩展包文件(要和当前PHP版本对应),如下:

 Wget-c http://pecl.php.net/get/memcache-3.0.6.tgz

Tar 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-memcache –with-php-config=/usr/local/php/bin/php-config –with-zlib-dir

Make&& make install

4、(四)最后修改php.ini文件,在zend之前加入

[memcache]

Extension_dir=”/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613”;

Extension=memcache.so

相关推荐
  • 阅读量:65
  • 阅读量:103
  • 阅读量:177
  • 阅读量:142
  • 阅读量:157
  • 猜你喜欢