本机Redis搭建主从哨兵
搭建主从
-
先下载Redis服务
- 由于我是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
- 由于我是Mac所以安装命令