Redis Delete dump.rdb Mistakenly [How to Solve]

1. Log in to redis database

[ [email protected] ~]# redis-cli -h
2. View redis configuration information> info

2. According the path of config_file to set dump.rdb file storage path, or you can customize the path> config set dir /storage/redis/

3. Save and exit> save> exit

4. Restart redis service

[ [email protected] ~]# service redis stop

[ [email protected] ~]# service redis start

Read More: