本机搭建Redis主从哨兵

本机Redis搭建主从哨兵

搭建主从

  • 先下载Redis服务

    1. 由于我是Mac所以安装命令brew install redis
    Updating Homebrew...
    ==> Auto-updated Homebrew!
    Updated 1 tap (homebrew/services).
    No changes to formulae.
    
    Warning: Treating redis as a formula. For the cask, use homebrew/cask/redis
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/redis-6.2.1.catalina.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Pouring redis-6.2.1.catalina.bottle.tar.gz
    ==> Caveats
    To have launchd start redis now and restart at login:
      brew services start redis
    Or, if you don't want/need a background service you can just run:
      redis-server /usr/local/etc/redis.conf
    ==> Summary
    
上一篇:redis 使用docker设置一主二从三哨兵


下一篇:redis的模式