??????峤 发表于 2018-11-5 10:16:23

redis命令处理量

  redis-cli info > /tmp/red.txt 2>/dev/null
  m1=`cat /tmp/red.txt|grep total_commands_processed|sed -r 's/\r//'|awk -F ":" '{print $2}'`
  sleep 10
  continue
  redis-cli info > /tmp/red1.txt 2>/dev/null
  m2=`cat /tmp/red1.txt|grep total_commands_processed|sed -r 's/\r//'|awk -F ":" '{print $2}'`
  ma=$(echo "($m2-$m1)/10"|bc)
  echo $ma

页: [1]
查看完整版本: redis命令处理量