1.Redis目录
cd /opt/redis/sbin
2.连接 redis
./redis-cli -h 127.0.0.1 -p 6380 -a redis (没有开启大网监听,默认只能在127.0.0.1监听)
3.关闭redis
./redis-cli -h 127.0.0.1 -p 6380 shutdown
4.启动redis
./redis-server ../conf/redis.conf
5.查看redis状态
netstat -lntp | grep 6380
6.查询全部
keys *
7.模糊匹配查询
keys *aaa@hehe321*