qq_41369735 2019-04-23 11:42 采纳率: 25%
浏览 1598
已结题

linux redis 数据丢失 服务没有重启 DB saved on disk后 数据就没了

redis 日志 :
7464:C 23 Apr 11:23:14.195 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
7464:C 23 Apr 11:23:14.195 # Redis version=4.0.1, bits=64, commit=00000000, modified=0, pid=7464, just started
7464:C 23 Apr 11:23:14.195 # Configuration loaded
7465:M 23 Apr 11:23:14.203 # Not listening to IPv6: unsupproted
.

.-__ ''-._
_.-
.
. ''-._ Redis 4.0.1 (00000000/0) 64 bit
.-.-.\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.
-._|'_.-'| Port: 6379
|
-._ ._ / _.-' | PID: 7465
-._ -._-./ .-' _.-'

|-._-.
-.__.-' _.-'_.-'|
|
-._-._ _.-'_.-' | http://redis.io
-._ -._-.__.-'_.-' .-'

|-._-.
-.__.-' _.-'_.-'|
|
-._-._ _.-'_.-' |
-._ -._-.__.-'_.-' .-'

-._-.
_.-' .-'

-._ _.-'
-.
_.-'

7465:M 23 Apr 11:23:14.204 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
7465:M 23 Apr 11:23:14.204 # Server initialized
7465:M 23 Apr 11:23:14.204 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
7465:M 23 Apr 11:23:14.204 * DB loaded from disk: 0.000 seconds
7465:M 23 Apr 11:23:14.204 * Ready to accept connections
7465:M 23 Apr 11:35:04.781 * DB saved on disk
7465:M 23 Apr 11:35:04.797 * DB saved on disk
7465:M 23 Apr 11:35:04.814 * DB saved on disk
7465:M 23 Apr 11:35:04.827 * DB saved on disk

  • 写回答

2条回答 默认 最新

  • 有人把我昵称抢了 2019-04-23 11:51
    关注

    是不是设置时间太短了,缓存清除了

    评论

报告相同问题?

悬赏问题

  • ¥15 chaquopy python 安卓
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 有没有帮写代码做实验仿真的
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥30 vmware exsi重置后登不上
  • ¥15 易盾点选的cb参数怎么解啊
  • ¥15 MATLAB运行显示错误,如何解决?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题