zoukankan      html  css  js  c++  java
  • memcached windowns 安装使用

    到csdn下载安装包吧,要不找我要,1033536868

    安装:

    memcached -d install

    memcached -d start

    net start "Memcached Server"

    卸载:

    memcached -d stop

    memcached -d remove

    sc delete "Memcached Server"

    memcached的基本设置:

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

    具体的内容我套用我的测试环境中,操作如下

    1. cmd上登录memcache

    2. 列出所有keys

    3. 通过itemid获取key

    接下来基于列出的items id,本例中为7,第2个参数为列出的长度,0为全部列出

    4. 通过get获取key值

    上面的stats cachedump命令列出了我的session key,接下来就用get命令查找对应的session值

    5. 参考地址

    参考地址:http://www.darkcoding.net/software/memcached-list-all-keys/

  • 相关阅读:
    [Error]错误 C2660: Gdiplus::GdiplusBase::operator new: 函数不带三个参数
    opengl多线程的问题
    去掉CFormView的滚动条
    DevIL库使用时图片翻转的问题
    让notepad++正确显示actionscript文件语法高亮
    [Error]world geometry is not supported by the generic scenemanager
    3d Max 9的"正在验证许可证"问题的解决
    CSizingControlBar Error C2440: “static_cast”: 无法从“UINT (__thiscall CSizingControlBarG::* )(CPoint)”转换为>>>
    MFC下的OpenGL
    酷!不用外挂,Win7资源监视器查看QQ好友IP
  • 原文地址:https://www.cnblogs.com/si812cn/p/5078406.html
Copyright © 2011-2022 走看看