Memcached 是一个高性能的分布式内存缓存系统,广泛用于提高 Web 应用程序的性能。它通过缓存数据和对象来减少读取外部数据源(如数据库或 API)的次数,从而加快数据检索速度并降低延迟

1.downlaod memcached-win64

memcached-win64-1.4.4-14.zip

2.install the service && start

# install
memcached.exe -d install

# start
memcached.exe -d start
or
net start "memcached Server"

# stop
memcached.exe -d stop

# uninstall
memcached.exe -d uninstall

注意:cmd.exe需要用管理员身份运行

3.参数介绍

memcached -h
    -p 监听的端口 
    -l 连接的IP地址, 默认是本机 
    -d start 启动memcached服务 
    -d restart 重起memcached服务 
    -d stop|shutdown 关闭正在运行的memcached服务 
    -d install 安装memcached服务 
    -d uninstall 卸载memcached服务 
    -u 以的身份运行 (仅在以root运行的时候有效) 
    -m 最大内存使用,单位MB。默认64MB 
    -M 内存耗尽时返回错误,而不是删除项 
    -c 最大同时连接数,默认是1024 
    -f 块大小增长因子,默认是1.25 
    -n 最小分配空间,key+value+flags默认是48 
    -h 显示帮助