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

linux memcached 安装

时间:2015-01-13 19:36:31      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:

1.安装libevent

./configure --prefix=...

make && make install

2.安装memcached

./configure --prefix=... --with-libevent=...

make && make install

 

3.启动

/home/users/v_liujun03/local/memcached/bin/memcached -d -m 128 -u root -p 11211 -c 1024 -P /tmp/memcached.pid

 

4.停止

kill -9 

 

 

为php 安装memcached 扩展

1.安装libmemcached 

./configure --prefix=... --with-memcached

make && make install

 

2.生成php memcached扩展

cd  /home/users/v_liujun03/download/lnmp.git/memcached-2.1.0

执行phpize

./configure -enable-memcached -with-php-config=/home/users/v_liujun03/local/php/bin/php-config -with-zlib-dir=/home/users/v_liujun03/local/lib/zlib -with-libmemcached-dir=/home/users/v_liujun03/local/lib/libmemcached -prefix=/home/users/v_liujun03/local/lib/phpmemcached

make && make install

3.修改php.ini配置

extension_dir=...

extension=memcached.so

 

linux memcached 安装

标签:

原文地址:http://www.cnblogs.com/moonwhisper/p/4222227.html

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