MemCache在Linux系统下的安装方法

 时间:2026-04-30 04:33:20

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

  • memcache在linux下的安装
  • Windows下memcache的安装
  • memcache简单使用
  • memcache的基本命令
  • MemCache的实例应用
  • 热门搜索
    怎么打下划线 建筑面积怎么算 车架号怎么看 光猫怎么连接路由器 中国的英文怎么写 酱牛肉怎么做好吃 辞职后社保怎么处理 ps怎么做倒影效果 鱼肝油怎么吃 我的世界剑怎么做