1 运行cmd
到redis安装目录,cmd输入redis-cli.exe -h 127.0.0.1 -p 6379
2 密码登录
auth 输入密码
3 设置和获取 set "hello" get "hello"
4 清空 flushall
5 选择数据库 select 1
1 运行cmd
到redis安装目录,cmd输入redis-cli.exe -h 127.0.0.1 -p 6379
2 密码登录
auth 输入密码
3 设置和获取 set "hello" get "hello"
4 清空 flushall
5 选择数据库 select 1