下载
下载地址:https://github.com/tporadowski/redis/releases
远程访问
修改redis.windows.conf
# 注释掉
# bind 127.0.0.1
# protected-mode yes
protected-mode no
修改redis.windows-service.conf
# 注释掉
# bind 127.0.0.1
# protected-mode yes
protected-mode no
在安装目录下执行
redis-server redis.windows.conf
重启计算机!!
修改密码
安装目录下找到redis.windows.conf
# requirepass foobared
requirepass 你的密码
在安装目录下执行
redis-server redis.windows.conf
在安装目录执行
redis-cli.exe
配置密码
127.0.0.1:6379> config set requirepass 123456789
查询密码
127.0.0.1:6379> config get requirepass
(error) NOAUTH Authentication required.
密码验证
127.0.0.1:6379> auth 123456789
OK