memcached启动脚本以及telnet测试
2024-10-11 15:42:39
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个字节
最新文章
- Java 基础【09】 日期类型
- ASP.NET MVC 如何解决“上下文的模型已在数据库创建后发生更改”问题
- Effective C++ -----条款45:运用成员函数模板接受所有兼容类型
- Google首席软件工程师Joshua Bloch谈如何设计一款优秀的API【附PPT】
- Verilog学习笔记设计和验证篇(三)...............同步有限状态机的指导原则
- MongoDB学习与BUG解答
- 通用窗口类 Inventory Pro 2.1.2 Demo1(上)
- wp仿系统截图
- .NET Framework 中的字符编码
- SharePoint咨询师之路:设计之前的那些事二:规模
- 每天一道面试题(2):实现strncpy
- js 中中括号,大括号使用详解
- HDU 5266 pog loves szh III
- trangleProble switch方法 java
- ASP.NET 平台下的MVC框架
- jsp静态与动态包含的区别和联系
- CSS 鼠标样式大全
- AngularJS学习笔记之directive——scope选项与绑定策略
- RocketMQ部分数据消费不了问题排查
- go语言基础之range
热门文章
- [Linux] linux awk命令详解
- css3属性flex弹性布局设置三列(四列)分布样式
- clustershell
- C# 泛型约束
- JQuery阻止冒泡事件on绑定中异常情况分析
- ASP.NET MVC中ViewData、ViewBag和TempData
- 排队打饭 sdut 2443【最简单的贪心法应用举例】
- 【网络资料】如何优雅地使用Sublime Text3
- 2016";百度之星"; - 初赛(Astar Round2A)Gym Class(拓扑排序)
- 攻城狮在路上(肆)How tomcat works(零) 前言说明