`
zhujiangtaobl0505
  • 浏览: 38778 次
社区版块
存档分类
最新评论

memcached Windows安装

 
阅读更多

一般情况下,我们用linux作为生产环境,但是开发还是在windows下面,所以我们需要 win版本。。但是memcache官方网站只提供了源码。

 

下面介绍使用第三方编译的win版本的方法:

 

这是一个由Kenneth Dalgleish基于Kronuz的1.2.1构建。官方的memcached的团队不对这个版本支持!

 

核心关键在这个:

http://splinedancer.com/memcached-win32/

 

memcached for Windows

This is a port of memcached to the win32 architecture by Kenneth Dalgleish, based on Kronuz's 1.2.1 port. This port is not supported by the official memcached team.

Install

The win32 version of memcached can be run both as a NT Service or from the command line. To install memcached as a service, follow the next steps:

  1. Unzip the binaries in your desired directory (eg. c:\memcached)
  2. Install the service using the command: 'c:\memcached\memcached.exe -d install' from the command line
  3. Start the server from the Microsoft Management Console or by running the following command: 'c:\memcached\memcached.exe -d start'
  4. Use the server, by default listening to port 11211

Building from source

To build from source, you will need Visual Studio 2005 (any edition with C++ should work), Windows SDK (eg.Windows SDK for Windows Server 2008 and .NET Framework 3.5) and libevent (win32 binary provided on this page).
  1. Install Visual Studio 2005
  2. Install Windows SDK
  3. Put libevent.lib in Win32-Prj/ folder
  4. Open solution file and it should build

Downloads

memcached 1.2.4 Win32 Beta

Libevent 1.3e Win32

(Needed if building from source)

 

 

Windows下Memcache安装

 

1、下载memcache for windows。下载地址:http://splinedancer.com/memcached-win32/,解压到d:\memcached。

2、在命令行状态下输入: d:\memcached\memcached.exe -d install 。至此memcached已经安装成windows服务

3、在命令行下输入: d:\memcached\memcached.exe -d start 以启动memcached服务。当然也可以选择在windows服务中启动

 

就是这么简单,简简单单的三步memcache的服务器端就准备完毕

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics