第一步需要 安装 libmemcache
下载官网https://launchpad.net/libmemcached/+download
第二步下载 memcached 扩展
http://pecl.php.net/package-search.php?pkg_name=memcached&bool=AND&submit=Search
memcached 扩展编译
phpize
./configure --with-php-config=/usr/local/php/bin/php-config --enable-memcached --with-libmemcached-dir=/usr/local/libmemcached --disable-memcached-sasl
开启php.ini memcached.so 扩展即可
网友评论