不灭的焱

加密类型:SHA/AES/RSA下载Go
复合类型:切片(slice)、映射(map)、指针(pointer)、函数(function)、通道(channel)、接口(interface)、数组(array)、结构体(struct) Go类型+零值nil
引用类型:切片(slice)、映射(map)、指针(pointer)、函数(function)、通道(channel) Go引用

作者:AlbertWen  添加时间:2013-09-16 21:49:42  修改时间:2025-11-17 07:24:13  分类:03.MySQL/PgSQL/Redis  编辑

在安装Memcached的PHP客户端memcache之前,可先看下先前的工作笔记:

PHP5不重新编译,如何安装自带的未安装过的扩展,如soap扩展?

 

安装PHP的memcache扩展

cd /usr/local/src
wget -c http://pecl.php.net/get/memcache-3.0.8.tgz
tar -xzvf ./memcache-3.0.8.tgz
mkdir /usr/local/memcache
cd ./memcache-3.0.8
/usr/local/php/bin/phpize
./configure --prefix=/usr/local/memcache --enable-memcache --with-php-config=/usr/local/php/bin/php-config --with-zlib-dir
make && make install

配置php.ini

extension=memcache.so

 

另外,推荐一款管理轻量级Memcached管理监控工具 -- MemAdmin(基于 PHP5 & jQuery 的 Memcached 管理监控工具)

官方网站:http://www.junopen.com/memadmin

GitHub代码托管:https://github.com/junstor/memadmin

 

 

延伸阅读:

CentOS6.3编译安装Memcached