查看Memcached运行状态的命令是:echo stats | nc 127.0.0.1 11211
查看memcached状态的基本命令,通过这个命令可以看到如下信息:
STAT time 1273043062 服务器当memcached怎么读前unix时间戳
STAT version 1.4.4 服务器版本
STAT pointer_size 64数据透视表 操作系统字数据分析师大小(这台服务器是64位的)
STAT rusage_user 0.040000 进程累计用户时间
STAT r服务器的作用usage_system 0.260000 进程累计系统时间
STAT cur数据分析r_connecti服务器的作用ons 10 当前打开连接数
STAT total_connections 82 曾打开的连接总数
STAT connection_structures 13 服务器分配的连接结构数
S数据分析师TAT cmd_get 54 执行get命令总数
STAT cm数据透视表d_set 34 执行set命令总数
STAT cmd_flush 3 指向flush_all命令总数
STAT get_hits 9 get命中次数
STAT get_misses 45 get未命中次数
STAT delete_misses 5 delete未命中次数
STAT delete_hits 1 delete命中次数
STAT incr_misses 0 incr未命中次数
STAT incr_hits 0 incr服务器是什么命中次数
STAT decr_misses 0 decr未命中次数
STAT decr_hits 0 decr命中次数
STAT cas_misses 0 cas未命中次数
STAT cas_hits 0 cas命中次数
STAT cas_badlinux创建文件val 0 使用擦拭次数
STAT auth_cmds 0
STAT aut系统运维工资一般多少h_errors 0
STAT bytes_re数据库ad 15785 读取字节总数
STAT bytes_writ数据ten 15222 写入字节总数
STAT limit_maxbytes 1048576 分配的内存数(字节)
STAT accepting_conns服务器打印后台处理程序没有运行 1 目服务器地址前接受的链接数
STAT listen_disabled_num 0
STA数据库T threads 4 线程数
STAT colinux系统安装nn_yields 0
STATlinux bytes 0 存储item字节数
STAT curr_imemcached与redis区别tems 0 item个数
STAT total_itemslinux 34 item总数
STAT evictions 0 为获取空间删除item的总数
stats items
输出各个slab中的item信息。s
stats slabs
输出slab中更详细的item信息
stats siz服务器租用es
输出所有item的大小和个数
stats cachedump <slab_id>memcached; <limit_num>
根据&l数据分析师t;slab_id&数据结构gt;输出相同服务器是什么的<slab_id>中的item信息。<limit_num>是输出的个数,当<limi服务器系统t_num>为0是输出所有的item。
利用shel数据l命令操作M数据科学与大数据技术emcached
1、数据存储(假设服务器key为g,value为12345)
printf “set g 0 0 5\r\n12345\r\n”|nc 127.0.0.1 11211
STORED
2、数据取回(假设key为系统运维工作内容zh数据分析师angyan)
printf “get g\r\n”|nc 127.0.0.1 11211
VALUE g 0 5
12345
END
3、数值增加1(假设key为g,并且value为正整数)
pmemcached怎么读rintf “incr g 1\r\n” | nc 127.0.数据透视表0.1 11211
1linux系统2346
4、数值减少3(假设key为g,并且value为正整数)
printf “decr g 3\r\n” | nc 127.0.0.1 11211
123数据科学与大数据技术43
5、linux创建文件数据删除(假设key为g)
printf “delete g\r\n” | nc 127.0.0.1 11211
DELET数据漫游ED
6、查看Memcached状态
plinux系统rintf “stats\r\n” | nc 127.0.0.1 11211
STAT pid 3025
STAT uptime 412服务器的作用0500
STAT version系统运维面试题及答案 1.2.6
STAT pointer_size 32
STAT rusage_user 433.463103
STAT rusage_system 1224.515845
STAT curr_items 1132460
STAT tlinux常用命令otal_items 8980260
STAT bytes 1895325386
STAT curr_connections 252
STAT tot服务器的作用al_connec数据分析师tions 547850
STAT connection_structures 1189
STAT cmd_get 13619685
STAT数据结构 cmd_set 8980260
STAT get_hits 68516服务器租用07
STAT evictions 0
STAT bytes_read 160396238linux246
STAT bytes_wr数据漫游是什么意思itten 260080686529
STAT limit_maxby服务器是什么tes 21474linux83648
STAT threads 1
END
7、模拟top命令,查看Memcached状态:
watch “printf ‘stats\r\n’ | nc 127.0.0.1数据 11211″
或者
watch “echo stats | nc 127.0.0.1 11211″
一、echo stats item数据废土s | nc127.0.0.1 11211
STAT items:linux创建文件1:number 998 Slab Id=1 ; items数量:99数据漫游是什么意思8(也就是已经存储了998个key值)
STAT items:1:age 604348系统/运维 Slab Id=1 ; 已经存在时间,单位秒linux必学的60个命令
STAT items:1:evicted 0 Slab Id=1 ; 被踢出的数量
STAT items:1:evicted_nonzero 0
STAT items:1:evicted_time 0
STAT items数据废土:1:o服务器租用utofmem服务器租用多少钱一年ory 0
S服务器租用TAT it数据分析师ems:1:taillinuxrepairs 0
STAT items:1:recl服务器打印后台处理程序没有运行aimed 0
STAT items:6:number 91897 Slab Id=6 ; items数量:91897(也就是已经存储了91897个key值)
S服务器打印后台处理程序没有运行TAT items:6:age 604345 Slab Id=6 ; 已经存在数据库时间,单位秒
STAT items:6:evicted 0 Slab Id系统运维包括哪些内容=6 ; 被踢出的数量
STAT items:6:evicted_nonzero 0
STAT items:6:evicted_ti数据结构me 0
STAT items:6:outofmemory 0
ST服务器怎么搭建AT items:6:tailrepairs 0
STAT items:6:reclaimed 0
发表评论