安装homebrew
ruby -e "$(curl --insecure -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
ZlindeMac-mini:~ zlinsun$ brew help
Example usage:
brew search [TEXT|/REGEX/]
brew (info|home|options) [FORMULA...]
brew install FORMULA...
brew update
brew upgrade [FORMULA...]
brew uninstall FORMULA...
brew list [FORMULA...]
Troubleshooting:
brew config
brew doctor
brew install -vd FORMULA
Developers:
brew create [URL [--no-fetch]]
brew edit [FORMULA...]
https://docs.brew.sh/Formula-Cookbook.html
Further help:
man brew
brew help [COMMAND]
brew home
ZlindeMac-mini:~ zlinsun$ brew install redis
Error: Xcode alone is not sufficient on Sierra.
Install the Command Line Tools:
xcode-select --install
ZlindeMac-mini:~ zlinsun$ xcode-select --install
xcode-select: note: install requested for command line developer tools
ZlindeMac-mini:~ zlinsun$ brew install redis
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
No changes to formulae.
==> Downloading https://homebrew.bintray.com/bottles/redis-4.0.6.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring redis-4.0.6.sierra.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
�� /usr/local/Cellar/redis/4.0.6: 13 files, 2.8MB
ZlindeMac-mini:~ zlinsun$