windows 下安装memcache拓展

Windows下安装memcached (linux 接下来会继续 学习)

以管理员身份进入CMD 模式,具体方法:C:/windows/system32 管理员身份打开cmd.exe

memcached -d install

memcached -d start

运行 services.msc ,搜索memcached 服务已启动,则开启成功 或者 telnet localhost 11211 查看是否能正常连接。

 

1.下载php_memcache.dll 拓展包   网址:http://www.jb51.net/softs/392873.html

2.根据电脑配置选择拓展文件 我的电脑是 win 64 ,如果是wamp集成环境,根据集成环境的配置选择(如果电脑为64位,但集成环境是32位,则需要安装 添加32位拓展文件);

ps: 关于文件选择:ts是指线程安全、nts是指线程不安全;

 

可以在phpinfo中的查找 Thread Safety项,若是enabled则为线程安全。可以在phpinfo中的查找 Thread Safety项,若是enabled则为线程安全。

 

3.php_memcache.dll 文件复制到php/ext 中,增加php.ini 配置(wamp集成环境中需要修改apache下的php.ini)   extension=php_memcache.dll ;

4.重启wamp ,phpinfo() 查看memcache 拓展是否安装成功

 

posted @ 2017-02-13 15:40  yokooo  阅读(234)  评论(0编辑  收藏  举报