由于本地设置了requirepass 123456,每次项目都要配置,要取消,网上查找都是Linux上的移除方法。
2 步骤
2.1 找到redis安装目录,例如:D:work edis
2.2 修改redis.windows-service.conf和redis.windows.conf两个文件中requirepass字段内容
## 修改前 requirepass 123456 ## 修改后 #requirepass
2.3 重启redis服务
计算机->管理->服务->Redis
redis服务可执行文件的路径:
D:work
edis
edis-server.exe --service-run "D:work
edis
edis.windows-service.conf"
所以要修改redis.windows-service.conf文件。linux和windows去除auth,本质都是一样,要修改config文件
3 扩展