在docker中配置(安装启动)Redis
yum install docker
systemctl start docker
docekr version
docker search redis
docker pull docker.io/redis
docker image ls
docker run -itd -name=myredis -p 6379:6379
docker ps
docker ps -a
docker exec -i -t myredis /bin/bash
docker start myredis
redis常见类型
a) string
- set key value
- get key value
b) list
c) hash:map
d) set
e) sorted set
Map<key,value>
rename key newkey
expire fruit 过期的时间[s]