windows下redis主从配置
摘要:1,复制两个redis文件夹,粘贴在同级目录下 2,分别修改6380和6381文件夹中的redis.window.conf文件 port:分别改为6380、6381 均增加:slaveof 127.0.0.1 6379 3,在6380和6381目录下分别执行以下命令 redis-server --s
阅读全文
在windows电脑中安装redis
摘要:1,github下载地址:https://github.com/MSOpenTech/redis/tags 2,下载完成后,解压到对应文件夹 3,打开redis.windows.conf,在#requirepass foobared下新增requirepass 密码;在# maxmemory <by
阅读全文
python数据库迁移
摘要:实际操作命令 1,python 文件.py db init 2,python xx.py db migrate -m '版本描述' 3,python xx.py db upgrade 4,python xx.py db history 查看版本号 5,python xx.py db downgrad
阅读全文