memcached 笔记之windows 7 下面 安装memcached 报错

windows 7 下面 安装memcached 报错

                       

两种情况:

                   一:服务确实已经安装过 。如需要重新安装,当然是先memcached.exe -d uninstall

                   二:奇怪的是服务确实没有安装过的情况,在memcached.exe -d install也会出现上面定位报错。此时关掉cmd窗口  然后以管理员身份运行cmd,在执行上面的install,不出意外你会顺利的执行成功。

常用命令:

安装、卸载、启动、配置相关

-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 显示帮助

操作 memcached

Command

Description

Example

get

Reads a value

get mykey

set

Set a key unconditionally

set mykey 0 60 5

add

Add a new key

add newkey 0 60 5

replace

Overwrite existing key

replace key 0 60 5

append

Append data to existing key

append key 0 60 15

prepend

Prepend data to existing key

prepend key 0 60 15

incr

Increments numerical key value by given number

incr mykey 2

decr

Decrements numerical key value by given number

decr mykey 5

delete

Deletes an existing key

delete mykey

flush_all

Invalidate specific items immediately

flush_all

Invalidate all items in n seconds

flush_all 900

stats

Prints general statistics

stats

Prints memory statistics

stats slabs

Prints memory statistics

stats malloc

Print higher level allocation statistics

stats items

 

stats detail

 

stats sizes

Resets statistics

stats reset

version

Prints server version.

version

verbosity

Increases log level

verbosity

quit

Terminate telnet session

quit

原文地址:https://www.cnblogs.com/jamesbd/p/3891834.html