1.登陆Redis数据库
[root@localhost ~]# redis-cli -h 192.168.1.19
2.查看Redis配置信息
192.168.1.19:6379> info
2. 根据config_file的路径设置dump.rdb文件存放路径,也可以自定义路径
192.168.1.19:6379> config set dir /storage/redis/
3.保存,退出
192.168.1.19:6379> save
192.168.1.19:6379> exit
4.重新启动Redis服务
[root@localhost ~]# service redis stop
[root@localhost ~]# service redis start