tcrmgr的一些用法

| |
[不指定 2010/01/24 23:24 | by real ]
1. 查看服务器统计信息
tcrmgr inform -port 11211 -st 192.168.1.25

2. 写入数据
tcrmgr put -port 11211 192.168.1.25 test value

3. 读取数据
tcrmgr get -port 11211 192.168.1.25 test

4. 删除数据
tcrmgr out -port 11211 192.168.1.25 test

5. 查看所有的key
tcrmgr list -port 11211 192.168.1.25

6. 备份数据
注意:路径是服务器上的绝对路径,否则显示“./tcrmgr: error: 9999: miscellaneous error”
tcrmgr copy -port 11211 192.168.1.25 /backup/backup.tch

7. 日志导出(屏幕上打印,十六进制字符串格式)
注意:目录是服务器上的ulog的绝对路径
ttulmgr export /data/ttserver/ulog/

8. 同步内存数据到磁盘(当使用异步io时将缓存的数据写入磁盘)
tcrmgr sync -port 11211 192.168.1.25

9. 数据导入
注意:tsv格式的文件以TAB分隔,如:test2\tvalue2\n
注意:路径是本地路径,所以不必是绝对路径
tcrmgr importtsv -port 11211 192.168.1.25 temp/2.tsv

10. 通过ulog日志恢复数据
注意:路径是服务器上的绝对路径
tcrmgr restore -port 11211 192.168.1.25 /data/ttserver/ulog/

11.  打印更新日志(挂起,一直显示日志)
可能是用于实时查看ttserver有哪些操作,相当于tail -f
tcrmgr repl -port 11211 -ph 192.168.1.25
Tags:
tc&&tt | 评论(0) | 引用(0) | 阅读(171)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
昵称   密码   游客无需密码
网址   电邮   [注册]
               

验证码 请输入左侧的字母,不区分大小写