liunx 安装,配置memcached
yum -y install memcached //安装memcached //启动memcached /usr/bin/memcached -l 127.0.0.1 -p 11211 -m 150 -u root //安装php-fpm的memcached扩展 yum -y install php-memcached
/usr/local/php5.6/lib/php/extensions/no-debug-non-zts-20131226/ //将生成好的扩展拷贝到lib64/php/modules 中 cp /usr/local/php5.6/lib/php/extensions/no-debug-non-zts-20131226/*.so /usr/lib64/php/modules/ php.ini 中添加扩展 extension=memcached.so
yum list installed | grep php
yum -y install php56w-pecl-memcached