我可以让 Memcached 在 Windows (x64) 64 位环境中运行吗? [英] Can I get Memcached running on a Windows (x64) 64bit environment?

查看:22
本文介绍了我可以让 Memcached 在 Windows (x64) 64 位环境中运行吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如果何时如何我可以获得Memcached 在 Windows 64 位环境中运行?

Does anyone know IF, WHEN or HOW I can get Memcached running on a Windows 64bit environment?

我正在设置一个新的托管解决方案,并且更喜欢运行 64 位操作系统,而且由于它是带有 SQL Server DB 的 ASP.Net MVC 解决方案,因此操作系统要么是 Windows Server 2003,要么(希望如此!) 2008 年.

I'm setting up a new hosting solution and would much prefer to run a 64bit OS, and since it's an ASP.Net MVC solution with SQL Server DB, the OS is either going to be Windows Server 2003 or (hopefully!) 2008.

我知道这可能会引发关于服务器上 32 位与 64 位的争论,但我只想说我的偏好是 64 位并且我有一些 非常 很好的理由.

I know that this could spill over into a debate regarding 32bit vs 64bit on servers, but let's just say that my preference is 64bit and that I have some very good reasons.

到目前为止,我已经尝试了多种选择,并找到了一个 bit help 与在 32 位机器上(和成功了,我可能会添加),但由于最初的 Windows 端口 是 Win32 特定的,所以这很难在 x64 上作为服务安装时提供帮助.它还依赖于 libevent,为此我只能获得 Win32 编译版本.

So far, I've tried a number of options and found a bit of help related to getting this up on a 32bit machine (and succeeded I might add), but since the original Windows port is Win32 specific, this is hardly going to help when installing as a service on x64. It also has a dependency on the libevent for which I can only get a Win32 compiled version.

我怀疑简单地在 C++ 中加载所有这些并点击编译"(对于 64 位)是行不通的,尤其是因为 32 位和 64 位架构的复杂差异,但我想知道是否有人正在研究把这个从地上弄下来?不幸的是,我的专长仅在于托管代码 (C#),否则我会尝试自己承担这个问题,但我不敢相信我是唯一一个试图获得 memcached 在 64 位 Windows 服务器上运行....是吗?

I suspect that simply loading all this up in C++ and hitting "compile" (for 64bit) wouldn't work, not least because of the intricate differences in 32 and 64bit architectures, but I'm wondering if anyone is working on getting this off the ground? Unfortunately, my expertise lie in managed code (C#) only, otherwise I would try and take this on myself, but I can't believe I'm the only guy out there trying to get memcached running on a 64 bit Windows server....am I?

更新

是的,恐怕我仍在寻找这个问题的答案——我所有的努力(用我可怜的 C++ 技能)进行稳定的构建都失败了——我已经毁掉了一台服务器和 3 个虚拟机尝试一下,所以现在我求助于真正的专家.有人计划将其移植到 64 位吗?或者你真的建议我改用 MS Velocity?想到这里我不寒而栗.

更新:@Lars - 实际上我确实使用 Enyim - 它非常好,但您指的是客户端,而不是服务器部分.

Update: @Lars - I do use Enyim actually - it's very good, but what you're referring to is a client, rather than the server part.

@DannySmurf - 我只能将它作为服务安装在 32 位操作系统上.64 位操作系统拒绝安装此 Win32 服务.当然是的,很多 Win32 代码可以在 x64 架构上无缝运行,因此您可以在 Vista/XP 64 等系统上运行 32 位应用程序(例如 Office)或游戏,但这并不能直接转换为服务.我不是专家,我怀疑这与服务需要订阅的同步或事件有关,我怀疑 64 和 32 不能很好地发挥作用.我很高兴在任何方面得到纠正,但要回答您的问题 - 是的,我已经尝试过了.

@DannySmurf - I've only been able to install it as a service on a 32 bit OS. 64 bit OS rejects the installation of this Win32 service. Of course yes, lots of Win32 code works seamlessly on x64 architecture, hence you can run 32bit apps (like Office for instance) or games on Vista/XP 64 etc, but this doesn't translate directly when it comes to services. I'm no expert, I suspect that it has to do with the syncs or eventing that services need to subscribe to, and I suspect that 64 and 32 don't play nicely. I'm happy to be corrected on any of this, but to answer your question - yes I have tried.

@OJ - 非常感谢您的直接回复.我想了很多,但不确定是否有人有建议或已经走这条路了.也许当 StackOverflow 上线时,更多的人会回应并让我知道这是否正在调查中,尽管我可以尝试自己编译它 - 我只是不能相信"(以我的 C++ 经验水平)它将在大型可扩展解决方案的关键组件中提供企业级"可靠性.我认为在我变得自信之前,它需要受过教育的干预而不是我未经消毒的实验方法.我的一个小疏忽可能会使网站瘫痪.哦,好吧...直到下一次.

@OJ - thanks very much for the straight-forward response. I thought as much, but wasn't sure if anyone else had suggestions or had already gone down this route. Maybe when StackOverflow is LIVE, then more people will respond and let me know if this is something being looked into, and although I can try and compile it myself - I simply can't "trust" (with my C++ experience level) that it would provide "Enterprise Level" reliability in such a crucial component of large scalable solutions. I think it would need educated intervention rather than my unsanitised experimental approach before I could be confident. One little oversight on my part, could bring the site down. Oh well... till next time.

推荐答案

North Scale 实验室发布了适用于 Windows x64 的 memcached 1.4.4 版本:

North Scale labs have released a build of memcached 1.4.4 for Windows x64:

http://blog.couchbase.com/memcached-windows-64-bit-pre-release-available

http://labs.northscale.com/memcached-packages/

更新:他们最近发布了 Memcached Server - 仍然是免费的,但具有集群、基于 Web 的管理/统计 UI 等的增强发行版(我与他们没有任何关系)在 http://northscale.com/products/memcached.html 并在以下位置下载:http://www.northscale.com/download.php?a=d

UPDATE: they have recently released Memcached Server - still FREE but enhanced distro with clustering, web-based admin/stats UI etc. (I'm not related to them in any way) Check it out at http://northscale.com/products/memcached.html and download at: http://www.northscale.com/download.php?a=d

更新 2:NorthScale Memcached 不再作为独立下载提供.现在,他们已将其作为名为 Membase 的商业 No-SQL DB 产品的一部分.它可以配置为仅在 Memcached 模式下运行(即没有持久性),并且还有一个 100% 免费版本.在这里查看:http://www.membase.org/downloads

UPDATE 2: NorthScale Memcached is no longer available as a standalone download. Now they have made it part of their commercial No-SQL DB offering called Membase. It can be configured to run in Memcached-only mode (i.e. without persistence) and there's a 100% free version too. Check it out here: http://www.membase.org/downloads

更新 3:MemBase 与 CouchDB 合作并生产了一种名为 CouchBase 的混合产品.他们仍然在 http://www.couchbase.com/download

UPDATE 3: MemBase has slept with CouchDB and produced a hybrid product offering, called CouchBase. They still do offer a free "Community" version at http://www.couchbase.com/download

这篇关于我可以让 Memcached 在 Windows (x64) 64 位环境中运行吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆