Memcache应用

 时间:2026-02-12 22:32:44

1、1. 安装memcache

在linux系统中安装memcache

Memcache应用

2、2.上传软件到linux系统z中:

Memcache应用

3、3.安装memcache服务软件

安装memcached命令:

shell# tar zxvf memcached-1.4.25.tar.gz

   shell# cd memcached-1.4.25

    shell# ./configure --prefix=/usr/local/memcached --with-libevent=/usr/local/libevent/

shell# make

shell# make install

   至此memcached安装完毕;

Memcache应用

4、4.后台启动memcache服务

Memcache应用

5、 5.php安装memcache扩展

现在技术在提高,扩展软件后安装也可以成为php的扩展功能(php不需要重复安装)

必要步骤:扩展软件安装的时候先执行一次/usr/local/php/bin/phpize

Memcache应用

6、6. php安装memcache扩展

安装memcache-2.2.7.tar

shell# tar xvf memcache-2.2.7.tar

shell# cd memcache-2.2.7

shell# /usr/local/php/bin/phpize

shell#./configure --enable-memcache --with-php-config=/usr/local/php/bin/php-config --with-zlib-dir

shell# make && make install

Memcache应用

Memcache应用

Memcache应用

Memcache应用

7、7.给php安装memcache成功后的状态:

Memcache应用

  • MemCache的实例应用
  • memcache如何在项目中使用
  • memcache在linux下的安装
  • memcache的基本命令
  • memcache的基本命令操作
  • 热门搜索
    银黄颗粒的功效与作用 山楂的功效与作用 高考生物必背知识点 炒黄豆的功效与作用 accompany什么意思 绿幽灵的功效与作用 英语必修一知识点总结 豆奶粉的功效与作用 双黄连口服液的作用 婴儿什么时候开始补钙