#vi /etc/redis/redis.conf

logfile "/var/log/redis/redis.log"

  

保存后退出vi, 重启redis服务,即可。 

 

注意,如果不设置redis.conf  里的logfile。 就会导致redis无法写日志, 进而导致,无法把redis数据写入到磁盘文件里。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-11
  • 2022-12-23
  • 2021-05-24
  • 2021-07-24
  • 2021-10-12
  • 2021-07-05
猜你喜欢
  • 2022-12-23
  • 2022-02-26
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2021-06-21
相关资源
相似解决方案