php - 在 Windows 7 (XAMPP) 中安装内存缓存

标签 php windows apache memcached xampp

我使用的是 Windows 7、64 位和 PHP 5.3.5。

memcache 在 phpinfo 中显示如下:

Active persistent connections: 0
Version: 2.2.5
Revision: $Revision: 1.114 $ 

而且我也收到连接错误 注意:Memcache::get() [memcache.get]: Server localhost (tcp 11211) failed

这就是我所做的:

1) 我安装并运行了 64 位 memcached 服务:http://s3.amazonaws.com/downloads.northscale.com/memcached-win64-1.4.4-14.zip .

2) 我将 php_memcache.dll (https://thinkam.googlecode.com/files/php_memcache-cvs-20090703-5.3-VC6-x86.zip) 复制到 php/ext。

3) 我在 php.ini 中添加了 extension = php_memcache.dll

4) 我重新启动了 XAMPP。

我可能会错过什么?

* 更新 *

Memcache 现在似乎正在监听端口 11211,但现在从我的应用程序中我收到以下错误:

Notice: Memcache::get() [memcache.get]: Server 127.0.0.1 (tcp 11211) failed with: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060)

最佳答案

您必须在Windows 控制面板->管理->服务中运行memcached server

关于php - 在 Windows 7 (XAMPP) 中安装内存缓存,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21029746/

相关文章:

javascript - 如何在 php、html、脚本中创建 3 行和无限列的动态表?我还需要在每个字段中都有一个链接到网站的按钮

php - 我如何能够在 Php 中执行以下操作,它不会抛出任何错误,请解释

windows - Git Bash - Putty - 不是 git repo 问题 - Windows

在 Windows 核心文件上调用 fopen 返回 NULL 指针

php - LAMP 当我上传 php 代码时,但浏览器不会刷新,直到我在 Linux 中重新启动 apache2 服务

apache - 使用 apache .htaccess 拒绝访问隐藏文件夹和临时文件夹内的文件

php - 通知: Undefined variable: on insert

windows - 如何安装 libgpuarray Windows

java - Apache Rampart 是否与 Maven 一起工作?

php - 如何修复此 socket_create 错误