---
title: "windows 版本的memcache"
author: "muyu"
date: "2011-08-30T09:45:19Z"
tags: []
categories: ["行业应用"]
slug: "windows-memcache"
draft: false
lastmod: "2011-09-10T17:04:47Z"
id: 1161073
url: "https://muyu.iteye.com/blog/1161073"
---

在本地windows下开发，集成环境中用到了memcache，导致代码无法正常运行，因此不得不写额外的“开关memcache”的逻辑。

先收藏：[http://splinedancer.com/memcached-win32/](http://splinedancer.com/memcached-win32/)

 

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