Memcached服务端安装及其客户端简单使用[参考].pdfVIP

  • 12
  • 0
  • 约5.74千字
  • 约 5页
  • 2021-10-19 发布于福建
  • 举报

Memcached服务端安装及其客户端简单使用[参考].pdf

Memcached 服务器端安装及其客户端使用 服务器端安装( Wind ows server ) 1 版本说明: memcached 版本: memcached-1.2.4-Win32 2 下载地址: /memcached/ 3 安装 Memcache Server(也可以不安装直接启动 ) (1 ) 下载 memcached 的 windows 版,解压放某个盘下面,比如在 D:\memcached (2 ) 在 CMD 下输入 D:\memcached\memcached.exe -d install 安装 . (3 ) 再输入: D:\memcached\memcached.exe -d start 启动。 4. 常用命令 常用设置: -p num 监听的端口 -l ip_addr 连接的 IP 地址 , 默认是本机 -d start 启动 memcached 服务 -d restart 重起 memcached 服务 -d stop|shutdown 关闭正在运行的 memcached 服务 -d install 安装 memcached 服务 -d uninstall 卸载 memcached 服务 -u username 以username 的身份运行 ( 仅在以 root 运行的时候有效 ) -m num 最大内存使用,单位 MB 。默认 64MB -M 内存耗尽时返回错误,而不是删除项 -c num 最大同时连接数,默认是 1024 -f factor 块大小增长因子,默认是 1.25 -n bytes 最小分配空间, key+value+flags 默认是 48 -h 显示帮助 5 . windows 下 Memcached 状态查看方法 CMD telnet 11211 stats 命令 得到的数据的意义如下: pid :32u ,服务器进程 ID 。 uptime :32u , 服务器运行时间,单位秒。 time :32u , 服务器当前的 UNIX 时间。 version :string , 服务器的版本号。 curr_items :32u , 服务器当前存储的内容数量 Current number of items stored by the ser ver total_items :32u , 服务器启动以来存储过的内容总数。 bytes :64u , 服务器当前存储内容所占用的字节数。 curr_connections :32u , 连接数量。 total_connections :32u , 服务器运行以来接受的连接总数。 connection_structur

文档评论(0)

1亿VIP精品文档

相关文档