linux redis日志文件路径的设置

来源:互联网 发布:php eval返回值 编辑:程序博客网 时间:2024/04/29 07:33




#vi /etc/redis/6379.conf



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



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



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

0 0
原创粉丝点击