shell脚本批量执行redis写入操作

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xiaobao5214/article/details/82768212
#!/bin/bash
while read line
 do
  echo $line | redis-cli -h 192.168.1.53 -p 6387 -c
  sleep 0.005
done < redis.txt            

每次执行一条命令睡眠5毫秒

猜你喜欢

转载自blog.csdn.net/xiaobao5214/article/details/82768212