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

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个回答

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

缓存清除掉,重新在试试!

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问