欢迎各位兄弟 发布技术文章
这里的技术是共享的
[chenzhou@localhost ~]$ /usr/local/memcached/bin/memcached -h
#其余的省略
-v verbose (print errors/warnings while in event loop)
-vv very verbose (also print client commands/reponses)
-vvv extremely verbose (also print internal state transitions)
/usr/local/memcached/bin/memcached -d -m 2048 -p $1 -u root -vv >> /tmp/memcached.log 2>&1
[chenzhou@localhost ~]$ tail -f /tmp/memcached.log
<31 send buffer was 110592, now 268435456
<30 server listening (udp)
<31 server listening (udp)
<30 server listening (udp)
<31 server listening (udp)
<30 server listening (udp)
<30 server listening (udp)
<31 server listening (udp)
<31 server listening (udp)
<32 new auto-negotiating client connection
[root@localhost bin]# telnet localhost 11211
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
set name 0 60 5 chenzhou
32: Client using the ascii protocol
<32 set name 0 60 5 chenzhou
来自 https://blog.csdn.net/yangjiehuan/article/details/38388553