Watch 1 Star 3 Fork 0

Tortoise / redis-clusterDocker

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
Redis 集群 spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

redis-cluster

介绍

Redis集群

安装教程

  1. 安装docker-compose

    // 下载
    curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
    
    
    // 赋予权限
    chmod +x /usr/local/bin/docker-compose
  2. 修改sysctl文件

    vim /etc/sysctl.conf
    
    // 新增内容
    vm.overcommit_memory=1
    
    // 使配置生效
    sysctl -p
  3. 运行docker-compose

    docker-compose -f xxx/redis-cluster/docker-compose.yml -d

Comments ( 0 )

You need to Sign in for post a comment

Help Search