您好,登录后才能下订单哦!
tar -zxvf memcache-3.0.8.tgz
cd memcache-3.0.8.tgz
/usr/bin/phpize
./configure --enable-memcache
make && make install
显示完成:Installing shared extensions: /usr/lib/php/modules/
添加php扩展文件
vim /etc/php.ini
extension=memcache.so
下载https://launchpad.net/libmemcached/+download
下载http://pecl.php.net/package/memcached
tar -zxvf libmemcached-1.0.18.tar.gz
cd libmemcached-1.0.18.tar.gz
mkdir /usr/local/share/libmemcached
./configure --prefix=/usr/local/share/libmemcached
make && make install
tar -zxvf memcached-2.2.0.tgz
cd memcached-2.2.0.tgz
/usr/bin/phpize
./configure --with-libmemcached-dir=/usr/local/share/libmemcached/
make && make install
添加php扩展文件
vim /etc/php.ini
extension=memcached.so
重启nginx
service nginx restart 就可以看到memcache扩展模块了
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。