Redis

Redis

安装

https://segmentfault.com/a/1190000039769819

重要: 配置文件映射,docker 镜像 redis 默认无配置文件。

重要: docker 镜像 redis 默认 无配置文件启动

redis配置文件:redis.conf

修改 requirepass 配值(连接密码)为 dm_dataview

docker run \
-p 6379:6379 --name myredis \
-v/Users/bochenghu/onlineinternship/redis/redis.conf:/etc/redis/redis.conf \
-v /Users/bochenghu/onlineinternship/redis/data:/data:rw \
--privileged=true -d redis redis-server /etc/redis/redis.conf \
--appendonly yes

卸载

使用

Redis 列表(List) | 菜鸟教程