linux redis日志文件路径的设置

#vi /etc/redis/redis.conf

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

  

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

 

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

posted @ 2017-11-17 13:48  Gnnnny  阅读(19007)  评论(0编辑  收藏  举报