手动触发

每天定期的去执行一次

写了一个脚本

bgrewriteaof.sh

内容如下:

#!/bin/bash

/usr/local/redis/redis-cli -p 6379 -h 127.0.0.1 BGREWRITEAOF

添加权限

chmod 755 brgewriteaof.sh

设定任务计划,每天凌晨2点跑一次

0 2 * * * /opt/bgrewriteaof.sh

 

https://www.cnblogs.com/xingzc/p/6384677.html
https://blog.csdn.net/Leon_cx/article/details/81545178

 

相关文章:

  • 2022-03-08
  • 2021-06-10
  • 2022-12-23
  • 2021-04-27
  • 2021-08-15
  • 2022-12-23
猜你喜欢
  • 2021-11-10
  • 2021-07-03
  • 2021-08-05
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案