首页 >后端开发 >php教程 >安装memcache扩展php

安装memcache扩展php

WBOY
WBOY原创
2016-06-23 14:29:13974浏览

 

扩展官网:http://pecl.php.net/package/memcache
扩展下载:http://pecl.php.net/get/memcache-2.2.4.tgz

Memcache扩展安装:
# tar zxvf memcache-2.2.4.tgz
# cd memcache-2.2.4
# /usr/local/php/bin/phpize
# ./configure --with-php-config=/usr/local/php/bin/php-config
# make
# make install

配置
# ls -l /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/memcache.so
# vim /usr/local/php/lib/php.ini

新增配置内容:
extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/"
extension = memcache.so

检查安装结果
# /usr/local/php/bin/php -m
# /usr/local/apache2/bin/apachectl restart

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn