您的位置:首页 > 数据库 > Memcache

comile---php安装memcached 扩展

2014-10-08 23:12 162 查看
环境:centOS6.4_32

yum -y install wget
cd /home
wget http://www.memcached.org/files/memcached-1.4.20.tar.gz tar -zxvf memcached-1.4.20.tar.gz
cd memcached-1.4.20
./configure --prefix=/usr/local/memcached/
到这提示需要libevent
yum -y install libevent libevent-devel
./configure --prefix=/usr/local/memcached/ --with-libevent=/usr/
make && make install

wget http://pecl.php.net/get/memcache-2.2.7.tgz cd memcache-2.2.7
/usr/bin/phpize
./configure --with-php-config=/usr/bin/php-config
make && make install

vi /etc/php.ini
在末尾添加
[memcached]
extension=/usr/lib/php/modules/memcache.so

运行phpinfo(); 搜索memcache
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: