码迷,mamicode.com
首页 > 系统相关 > 详细

安装memcached扩展 验证过了可行

时间:2015-06-20 17:05:39      阅读:142      评论:0      收藏:0      [点我收藏+]

标签:

. 安装libmemached

复制代码 代码如下:

wget https://launchpad.net/libmemcached/1.0/1.0.16/+download/libmemcached-1.0.16.tar.gz
tar -zxvf libmemcached-1.0.16.tar.gz
cd libmemcached-1.0.16
./configure -prefix=/usr/local/libmemcached -with-memcached
make && make install

5. 安装php-devel

复制代码 代码如下:

yum install php-devel

6. 安装PHP Memcached扩展

复制代码 代码如下:


wget http://pecl.php.net/get/memcached-2.1.0.tgz
tar -zxvf memcached-2.1.0.tgz
cd memcached-2.1.0
/usr/local/php/bin/phpize
./configure -enable-memcached -with-php-config=/usr/local/php/bin/php-config -with-zlib-dir -with-libmemcached-dir=/usr/local/libmemcached -prefix=/usr/local/phpmemcached
make && make install

安装memcached扩展 验证过了可行

标签:

原文地址:http://www.cnblogs.com/agang-php/p/4590678.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!