memcached 命令行 没有交互

实在是在网上没找到一样的问题

在centos 下
先安装 libevent
再 安装 memcached

通过命令启动之后
memcached -m 10m -u root -p 11211 -c 256 -P /tmp/memcached.pid -vv
在交互环境中没有任何反应

按理来说至少应该提示我键入的命令有误对吧

不是很懂,谢谢各位!
图像-20121222_003256.jpg

阅读 6.6k
1 个回答

不要用netcat...用telnet就行了。

$ nc localhost 21201       #用nc在set的时候不会结束
set hello 0 0 5   
xxxxx
asdjasd
CLIENT_ERROR bad data chunk
^C
$ telnet localhost 21201  #用telnet就没问题
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
set hello 0 0 5
world
STORED
get hello
VALUE hello 0 5
world
END
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题