redis windows版本下载

redis 的windows版本在redis官网没有了,要在github才能看到

Windows版本下载地址(菜鸟教程上也有):https://github.com/MicrosoftArchive/redis  

 

Redis 修改配置文件

不同版本 行数不一定对  最好用vi命令去需改  有时候用editplus修改 修改没生效

61行 bind 注释掉
84行 port 7000 自行修改

94行 protected-mode no 禁用保护模式
128行 daemonize yes  后台启动守护线程
150行 pidfile /var/run/redis_7000.pid  防止启动多个线程副本

721行 cluster-enabled yes  集群才要

729行 cluster-config-file nodes-7000.conf  集群才要
735行 cluster-node-timeout 15000 集群才要
593行 appendonly yes 开启aof持久化 

开启redis

./redis-server ../redis.config

关闭redis

./redis-cli shundown

 更多参数见:https://www.runoob.com/redis/redis-backup.html

 

redis连接命令:

redis-cli -h host -p port -a password

./redis-cli 

auth 6993258(这个是密码)

 

posted @ 2021-04-03 23:28  穿越时空的纸鸢  阅读(1055)  评论(0)    收藏  举报