下载
northscale重新构建的Memcached安装包地址下载:
http://labs.northscale.com/memcached-packages/
本文提供了一个memcached for win32 v1.2.5的下载:
/Files/liuxiaojun/Memcached_1.2.5.zip
安装
以本站提供的 v1.2.5版本的安装为例。
1、解压缩
例如解压到目录:D:\Memcached
2、安装Memcached服务
通过命令行的方式进入Memcached的安装目录,假设安装目录为:D:\Memcached,则通过以下命令进入:
Microsoft Windows [版本 6.1.7600]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
C:\Users\Administrator>d:
D:\>cd D:\Memcached
D:\Memcached>
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
C:\Users\Administrator>d:
D:\>cd D:\Memcached
D:\Memcached>
使用下面的命令安装服务:
D:\Memcached>Memcached.exe –p 11211 -m 64m -d install
其中这里使用的Memcached选项含义如下:
选项 |
说明 |
-p |
使用的TCP端口。默认为11211 |
-m |
最大内存大小。默认64M |
-d |
作为daemon在后台启动 |
3、启动Memcached服务
使用如下命令启动Memcached服务:
D:\Memcached>Memcached.exe –d start
4、停止Memcached服务
D:\Memcached>Memcached.exe –d stop