Home  >  Article  >  Backend Development  >  开启php的memcache扩展

开启php的memcache扩展

WBOY
WBOYOriginal
2016-06-23 13:12:43912browse

php默认情况下并没有开启的memcache扩展,下面将详细讲解memcache扩展的安装。


windows下安装memcache扩展

访问php官网 http://pecl.php.net/package/memcache

点击DLL 下载对应windows版本的dll


将dll复制到 php/ext/


修改php.ini

extension=php_memcache.dll

重启web访问即可开启


linux下安装memcache扩展

centOs : 

yum install php-pecl-memcache 从启php即可。

或者在linux下编译安装php的扩展,下载地址同上


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