安装redis 1.使用Homebrew安装Redis brew install redis
执行上述命令后出现以下内容,则成功安装
Download failed: https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/redis-6.0.9.big_sur.bottle.tar.gz Warning: Bottle installation failed: building from source. ==> Downloading https://download.redis.io/releases/redis-6.0.9.tar.gz ######################################################################## 100.0% ==> make install PREFIX=http://www.likecs.com/usr/local/Cellar/redis/6.0.9 CC=clang BUILD_TLS=yes ==> 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