redis-cli -h 地址 -p 端口 -a 密码
  • 密码参数如果未设置,代表目标Redis无密码
  • redis-cli就是Redis运行目录下的redis-cli或redis-cli.exe

更多推荐