Redis

Deploy

Projects

单机部署

script
1
docker run -p 6379:6379 --name redis -v /data/docker/redis/config/redis.conf:/etc/redis/redis.conf -v /data/docker/redis/data:/data -d redis redis-server /etc/redis/redis.conf --appendonly yes --requirepass "foobared"

主redis服务配置```/path/to/redis/config/master.conf 自定义配置```

阅读全文 »

创建 6 个 Redis 容器```shelldocker create --name redis-node1 --net host -v /data/redis-data/node1:/data redis:5.0.5 --cluster-enabled yes --cluster-config-file nodes-node-1.conf --port 6379

阅读全文 »

Doc

参考- [docker安装redis(单机)](https://www.cnblogs.com/marshhu/p/12636536.html)

阅读全文 »

Cluster

Simple

V11

0%