Encountered a Redis persistence error during program execution.

How to Fix
1. Modify the configuration file:
vi redis.conf
stop-writes-on-bgsave-error no # Change the value from yes to no. If this line does not exist, append it to the end of the file.
Additional optimizations — decide whether to execute the following commands based on your situation:
echo "vm.overcommit_memory = 1" >>/etc/sysctl.conf
sysctl vm.overcommit_memory=1
echo never > /sys/kernel/mm/transparent_hugepage/enabled
2. Restart Redis.