linux redis日志文件路径的设置

#vi /etc/redis/redis.conf

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

  

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

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

原文地址:https://www.cnblogs.com/Gnnnny/p/7851198.html