#vi /etc/redis/redis.conf logfile "/var/log/redis/redis.log"
保存后退出vi, 重啟redis服務,即可。
注意,如果不設置redis.conf 里的logfile。 就會導致redis無法寫日志, 進而導致,無法把redis數據寫入到磁盤文件里。
#vi /etc/redis/redis.conf logfile "/var/log/redis/redis.log"
保存后退出vi, 重啟redis服務,即可。
注意,如果不設置redis.conf 里的logfile。 就會導致redis無法寫日志, 進而導致,無法把redis數據寫入到磁盤文件里。
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。