启动命令例子:
sc
create Memcachedserver11212 binpath= “D:\memcached-win32-1.4.4-14\memcached.exe
-d
runservice
-m
256
-p
11211″
start
= auto
displayname
= “Memcached server (11212)”
-p 指定端口号(默认11211)
-m 指定最大使用内存大小(默认64MB)
-t 线程数(默认4)
-l 连接的IP地址, 默认是本机
-d start 启动memcached服务
-d restart 重起memcached服务
-d stop|shutdown 关闭正在运行的memcached服务
-m 最大内存使用,单位MB。默认64MB
-M 内存耗尽时返回错误,而不是删除项
-c 最大同时连接数,默认是1024
-f 块大小增长因子,默认是1.25
-n 最小分配空间,key+value+flags默认是48
sc 用来管理windows上的服务
可以实现在同一台机器上安装多个memcached服务
sc 创建系统服务命令如下:
sc create [service name] [binPath= ] <option1> <option2>…
CREATE OPTIONS:
NOTE: The option name includes the equal sign.
type= <own|share|interact|kernel|filesys|rec>
(default = own)
start= <boot|system|auto|demand|disabled>
(default = demand)
error= <normal|severe|critical|ignore>
(default = normal)
binPath= <BinaryPathName>
group= <LoadOrderGroup>
tag= <yes|no>
depend= <Dependencies(separated by / (forward slash))>
obj= <AccountName|ObjectName>
(default = LocalSystem)
DisplayName= <display name>
password= <password>
只要修改
DisplayName 即可
感谢
http://hi.baidu.com/gladfeel/blog/item/18df86ef396996fecf1b3eeb.html