1.WIN+R,CMD
2. 进入redis安装目录
3. 运行:redis-cli.exe -h ip -p port auth pass / edis-cli.exe -h ip -p port -a pass(密码)
例:redis-cli.exe -h 127.0.0.1 -p 6379 / redis-cli.exe -h 127.0.0.1 -p 6379 -a 111111
4. 选择库,执行查询
1.WIN+R,CMD
2. 进入redis安装目录
3. 运行:redis-cli.exe -h ip -p port auth pass / edis-cli.exe -h ip -p port -a pass(密码)
例:redis-cli.exe -h 127.0.0.1 -p 6379 / redis-cli.exe -h 127.0.0.1 -p 6379 -a 111111
4. 选择库,执行查询