memcached -m 1024 -u root -p 11211 -c 1024 -P /var/memcached.pid -d
memcached 1.2.2
-p <num> TCP port number to listen on (default: 11211)
-U <num> UDP port number to listen on (default: 0, off)
-s <file> unix socket path to listen on (disables network support)
-l <ip_addr> interface to listen on, default is INDRR_ANY
-d run as a daemon
-r maximize core file limit
-u <username> assume identity of <username> (only when run as root)
-m <num> max memory to use for items in megabytes, default is 64 MB
-M return error on memory exhausted (rather than removing items)
-c <num> max simultaneous connections, default is 1024
-k lock down all paged memory
-v verbose (print errors/warnings while in event loop)
-vv very verbose (also print client commands/reponses)
-h print this help and exit
-i print memcached and libevent license
-b run a managed instanced (mnemonic: buckets)
-P <file> save PID in <file>, only used with -d option
-f <factor> chunk size growth factor, default 1.25
-n <bytes> minimum space allocated for key+value+flags, default 48

占用1024MB内存,并且允许最大1024个并发连接

[root@localhost ~]# telnet 127.0.0.1 11211
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
set key 0 10 6
result
STORED
get key
VALUE key 0 6
result
END

set key 0 10 6   10秒过期,存6个字节

最新文章

  1. Java 基础【09】 日期类型
  2. ASP.NET MVC 如何解决“上下文的模型已在数据库创建后发生更改”问题
  3. Effective C++ -----条款45:运用成员函数模板接受所有兼容类型
  4. Google首席软件工程师Joshua Bloch谈如何设计一款优秀的API【附PPT】
  5. Verilog学习笔记设计和验证篇(三)...............同步有限状态机的指导原则
  6. MongoDB学习与BUG解答
  7. 通用窗口类 Inventory Pro 2.1.2 Demo1(上)
  8. wp仿系统截图
  9. .NET Framework 中的字符编码
  10. SharePoint咨询师之路:设计之前的那些事二:规模
  11. 每天一道面试题(2):实现strncpy
  12. js 中中括号,大括号使用详解
  13. HDU 5266 pog loves szh III
  14. trangleProble switch方法 java
  15. ASP.NET 平台下的MVC框架
  16. jsp静态与动态包含的区别和联系
  17. CSS 鼠标样式大全
  18. AngularJS学习笔记之directive——scope选项与绑定策略
  19. RocketMQ部分数据消费不了问题排查
  20. go语言基础之range

热门文章

  1. [Linux] linux awk命令详解
  2. css3属性flex弹性布局设置三列(四列)分布样式
  3. clustershell
  4. C# 泛型约束
  5. JQuery阻止冒泡事件on绑定中异常情况分析
  6. ASP.NET MVC中ViewData、ViewBag和TempData
  7. 排队打饭 sdut 2443【最简单的贪心法应用举例】
  8. 【网络资料】如何优雅地使用Sublime Text3
  9. 2016&quot;百度之星&quot; - 初赛(Astar Round2A)Gym Class(拓扑排序)
  10. 攻城狮在路上(肆)How tomcat works(零) 前言说明