首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
V2EX
›
memcached
memcached 有没有什么比较好用的命令行工具?
Livid
·
2017-02-27 08:13:22 +08:00
· 6605 次点击
这是一个创建于 2965 天前的主题,其中的信息可能已经有所发展或是发生改变。
虽然可以 telnet localhost 11211 操作,但是不支持用上下键获得之前的指令,不是太方便。 memcached 有类似像 redis-cli 那样的命令行工具么?
Memcached
命令
localhost
redis-cli
4 条回复
•
2017-05-25 08:10:53 +08:00
1
deamwork
2017-02-27 08:18:31 +08:00 via Android
2
这有个脚本, perl 的
https://github.com/memcached/memcached/blob/master/scripts/memcached-tool
2
zjuhwc
2017-02-27 08:56:18 +08:00 via iPhone
1
装对应的 Python 包,在 ipython 里操作
3
xofyarg
2017-02-27 09:09:21 +08:00
9
如果只是希望获得 readline 的功能,可以尝试套一个前端,比如 socat:
socat READLINE,history=/path/to/history TCP4:127.1:11211,crnl
4
Livid
MOD
OP
2017-05-25 08:10:53 +08:00
谢谢 @
xofyarg
我把下面这条加到我的 .profile 里了:
alias mc='socat READLINE,history=/path/to/history TCP4:127.1:11211,crnl'
然后只要输入 mc 就可以进入到一个类似 redis-cli 的使用体验。
在 macOS 上需要先安装 socat:
brew install socat
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
1289 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 20ms ·
UTC 17:28
·
PVG 01:28
·
LAX 10:28
·
JFK 13:28
Developed with
CodeLauncher
♥ Do have faith in what you're doing.