我需要复制方面的帮助,我在ubuntu18中使用redis-6-0-8
创建了redis2.conf,我在其中更改了:
复制127.0.0.1 6379
端口6380
appendfilename“appendonly2.aof”当我运行复制服务器时,我得到了这个无限同步循环:
18293:C 19 Oct 2020 11:37:30.325 # Redis version=6.0.8, bits=64, commit=00000000, modified=0, pid=18293, just started
18293:C 19 Oct 2020 11:37:30.325 # Configuration loaded
18293:S 19 Oct 2020 11:37:30.326 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
18293:S 19 Oct 2020 11:37:30.326 # Server can't set maximum open files to 10032 because of OS error: Operation not permitted.
18293:S 19 Oct 2020 11:37:30.326 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 6.0.8 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6380
| `-._ `._ / _.-' | PID: 18293
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
18293:S 19 Oct 2020 11:37:30.328 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
18293:S 19 Oct 2020 11:37:30.328 # Server initialized
18293:S 19 Oct 2020 11:37:30.328 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
18293:S 19 Oct 2020 11:37:30.328 # 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 madvise > /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 (set to 'madvise' or 'never').
18293:S 19 Oct 2020 11:37:30.330 * Ready to accept connections
18293:S 19 Oct 2020 11:37:30.330 * Connecting to MASTER 127.0.0.1:6379
18293:S 19 Oct 2020 11:37:30.330 * MASTER <-> REPLICA sync started
18293:S 19 Oct 2020 11:37:30.330 * Non blocking connect for SYNC fired the event.
18293:S 19 Oct 2020 11:37:30.331 * Master replied to PING, replication can continue...
18293:S 19 Oct 2020 11:37:30.331 * Partial resynchronization not possible (no cached master)
18293:S 19 Oct 2020 11:37:30.332 * Full resync from master: 1a3d1af99e5a53fb856030e3fcde97eccb0be660:0
18293:S 19 Oct 2020 11:37:30.441 * MASTER <-> REPLICA sync: receiving 257 bytes from master to disk
18293:S 19 Oct 2020 11:37:30.443 * MASTER <-> REPLICA sync: Flushing old data
18293:S 19 Oct 2020 11:37:30.446 * MASTER <-> REPLICA sync: Loading DB in memory
18293:S 19 Oct 2020 11:37:30.451 # Failed trying to load the MASTER synchronization DB from disk
18293:S 19 Oct 2020 11:37:31.332 * Connecting to MASTER 127.0.0.1:6379
18293:S 19 Oct 2020 11:37:31.333 * MASTER <-> REPLICA sync started
18293:S 19 Oct 2020 11:37:31.333 * Non blocking connect for SYNC fired the event.
18293:S 19 Oct 2020 11:37:31.333 * Master replied to PING, replication can continue...
18293:S 19 Oct 2020 11:37:31.333 * Partial resynchronization not possible (no cached master)
18293:S 19 Oct 2020 11:37:31.335 * Full resync from master: 1a3d1af99e5a53fb856030e3fcde97eccb0be660:0
18293:S 19 Oct 2020 11:37:31.447 * MASTER <-> REPLICA sync: receiving 257 bytes from master to disk
18293:S 19 Oct 2020 11:37:31.448 * MASTER <-> REPLICA sync: Flushing old data
18293:S 19 Oct 2020 11:37:31.448 * MASTER <-> REPLICA sync: Loading DB in memory
18293:S 19 Oct 2020 11:37:31.455 # Failed trying to load the MASTER synchronization DB from disk
18293:S 19 Oct 2020 11:37:32.336 * Connecting to MASTER 127.0.0.1:6379
18293:S 19 Oct 2020 11:37:32.337 * MASTER <-> REPLICA sync started
18293:S 19 Oct 2020 11:37:32.337 * Non blocking connect for SYNC fired the event.
18293:S 19 Oct 2020 11:37:32.337 * Master replied to PING, replication can continue...
18293:S 19 Oct 2020 11:37:32.338 * Partial resynchronization not possible (no cached master)
18293:S 19 Oct 2020 11:37:32.340 * Full resync from master: 1a3d1af99e5a53fb856030e3fcde97eccb0be660:0
18293:S 19 Oct 2020 11:37:32.454 * MASTER <-> REPLICA sync: receiving 257 bytes from master to disk
18293:S 19 Oct 2020 11:37:32.456 * MASTER <-> REPLICA sync: Flushing old data
18293:S 19 Oct 2020 11:37:32.456 * MASTER <-> REPLICA sync: Loading DB in memory
18293:S 19 Oct 2020 11:37:32.467 # Failed trying to load the MASTER synchronization DB from disk
你有什么可能的解决办法吗?或者我为什么会碰到它?
暂无答案!
目前还没有任何答案,快来回答吧!