0x001:mac上安装mac上安装使用homebrew即可,安装中有许多重要的信息,所以这里不做省略,并在以下的输出中做一些注释。
# 输入$ brew install redis# 输出Updating Homebrew...==> Downloading https://homebrew.bintray.com/bottles/redis-4.0.9.high_sierra.bot######################################################################## 100.0%==> Pouring redis-4.0.9.high_sierra.bottle.tar.gzError: The `brew link` step did not complete successfullyThe formula built, but is not symlinked into /usr/localCould not symlink bin/redis-benchmarkTarget /usr/local/bin/redis-benchmarkalready exists. You may want to remove it: rm '/usr/local/bin/redis-benchmark'To force the link and overwrite all conflicting files: brew link --overwrite redisTo list all files that would be deleted: brew link --overwrite --dry-run redisPossible conflicting files are:# 这里是一些工具的位置,又需要可以直接从下面路径找到相应工具/usr/local/bin/redis-benchmark/usr/local/bin/redis-check-aof/usr/local/bin/redis-check-rdb/usr/local/bin/redis-cli/usr/local/bin/redis-sentinel -> /usr/local/bin/redis-server/usr/local/bin/redis-server==> CaveatsTo have launchd start redis now and restart at login: brew services start redisOr, if you don't want/need a background service you can just run:# 这里是启动服务端的方法,其中包含了默认配置文件的位置 redis-server /usr/local/etc/redis.conf==> Summary