linux memcached 安装
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
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。