Home >Backend Development >PHP Tutorial >安装memcache扩展php

安装memcache扩展php

WBOY
WBOYOriginal
2016-06-23 14:29:13971browse

 

扩展官网: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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn