下载Redis
百度网盘下载地址:https://pan.baidu.com/s/1PDYbR7PSdHNac2djSPuTRQ 提取码:tilq
安装
解压文件
修改redis.windows.conf配置中的密码
#requirepass foobared改为(注意不要空格):
requirepass 123456
启动Redis服务端
输入redis-server.exe redis.windows.conf启动
启动Redis临时服务
在redis目录下运行:redis-server.exe redis.windows.conf
通过这个命令,会创建Redis临时服务,不会在window Service列表出现Redis服务名称和状态,此窗口关闭,服务会自动关闭
报错:# Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
问题不大,只是配置的密码没有失效而已,换个方式配置密码
修改密码
在redis目录下打开命令行窗口
运行以下指令:
打开客户端并建立连接
redis-cli.exe -h 127.0.0.1 -p 6379
查看密码
config get requirepass
配置密码
config set requirepass 123456
使用密码进行权限验证
auth 123456
使用Another redis Desktop Manage连接
在github下载安装包:https://github.com/qishibo/AnotherRedisDesktopManager/releases
快捷启动Redis脚本
start redis-server.exe redis.windows.conf
放入Redis目录下,后缀为bat