Closed shengbinxu closed 1 month ago
Hi,
Thanks a lot for your issue. If possible, could you please to make a PR to update it? Please make sure you test it.
直接 args 指定 -a就能解吧
I was about to create a PR for this but it appears that the official documentation for redis cli mentions this environment variable as the suggested method for authentication.
https://redis.io/docs/latest/develop/connect/cli/
I think we can safely close this issue. This is just an example so the user must adapt the example according to their needs just like @wayne666 suggested.
The REDISCLI_AUTH
environment variable was introduced in Redis version 5.0.3, as noted in this commit. It might be useful to include a remark about this feature in relevant documentation.
1、REDISCLI_AUTH这个环境变量在redis 3.2版本中无效。
建议在示例中做一个说明。 替代方案:在命令中使用-a选项指定密码
2、当redis server内存不足或者磁盘满了时,使用ping应该是无法检测服务是否异常(没有验证,纯属猜测)。这时候我执行
set key aa
会执行失败。 此时对应的语法应该是:最开始我使用的错误语法是:
建议在示例中做一个说明