任务描述
本次集中介绍使用Windows和Linux()搭建本地Redis服务器的步骤,从备份的RDB文件中加载数据,以及如何生成AOF文件和通过AOF文件想已经运行的Redis追加数据。
操作步骤
Windows版本
Linux版本
操作中遇见的错误:
1:no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
在redis的目录文件中,已经包含了redis.windows.config文件,可以在启动redis-server时指定config文件。如:redis-server redis.windows.conf
2:Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
表明6379已经被占用,可以通过redis-cli连接上去。然后执行shutdown命令关闭已经运行的Redis-server, 重启即可。
SHUTDOWN & RESTART
参考资料:
Windows Redis: https://github.com/microsoftarchive/redis/releases
Reids官网:https://redis.io/download#installation
Linux Copy File Command:https://www.cyberciti.biz/faq/copy-command/
Redis Backup:https://www.w3resource.com/redis/redis-backup.php
Copy File:https://comtechies.com/copy-files-between-windows-and-linux.html
Putty Copy File:https://www.ssh.com/ssh/putty/putty-manuals/0.68/Chapter5.html