Mysql with memcached 啟動與操作

hunterjoy發表於2015-07-05

啟動:
memcached -d -p 11211 -l 192.0.2.151 -u linfy


操作:
[root@linfytest3 ~]# telnet 192.0.2.151 11211
Trying 192.0.2.151...
Connected to 192.0.2.151.
Escape character is '^]'.
set key1 0 60 9
seaprince
STORED
get key1
VALUE key1 0 9
seaprince
END
seaprince
ERROR
stats
STAT pid 5211
STAT uptime 2640
STAT time 1435995957
STAT version 1.4.15
STAT libevent 2.0.21-stable
STAT pointer_size 64
STAT rusage_user 0.112718
STAT rusage_system 0.091843
STAT curr_connections 5
STAT total_connections 9
STAT connection_structures 6
STAT reserved_fds 20
STAT cmd_get 5
STAT cmd_set 1
STAT cmd_flush 0
STAT cmd_touch 0
STAT get_hits 1
STAT get_misses 4
STAT delete_misses 0
STAT delete_hits 0
STAT incr_misses 0
STAT incr_hits 0
STAT decr_misses 0
STAT decr_hits 0
STAT cas_misses 0
STAT cas_hits 0
STAT cas_badval 0
STAT touch_hits 0
STAT touch_misses 0
STAT auth_cmds 0
STAT auth_errors 0
STAT bytes_read 358
STAT bytes_written 3464
STAT limit_maxbytes 67108864
STAT accepting_conns 1
STAT listen_disabled_num 0
STAT threads 4
STAT conn_yields 0
STAT hash_power_level 16
STAT hash_bytes 524288
STAT hash_is_expanding 0
STAT bytes 78
STAT curr_items 1
STAT total_items 1
STAT expired_unfetched 0
STAT evicted_unfetched 0
STAT evictions 0
STAT reclaimed 0
END
get key1
END
set key1 0 3600 3 123
123
STORED
incr key1 5
128
decr key1 5
123
delete key1
DELETED
get key1
END
quit

[root@linfytest3 ~]# telnet 192.0.2.151 11211
Trying 192.0.2.151...
Connected to 192.0.2.151.
Escape character is '^]'.
set key1 0 3600 3 123
123
STORED
incr key1 8
131
decr key1 6
125
get key1  
VALUE key1 0 3
125
END
delete key1
DELETED
get key1
END
quit
Connection closed by foreign host.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/543979/viewspace-1723244/,如需轉載,請註明出處,否則將追究法律責任。

相關文章