标签:
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
标签:
原文地址:http://www.cnblogs.com/moonwhisper/p/4222227.html