mac brew install redis
Last login: Tue Jul 31 23:30:40 on console
➜ ~ brew install redis #安裝redis
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core, homebrew/cask).
==> New Formulae
gradio
==> Updated Formulae
gdbm ✔ goreleaser pango
mysql ✔ gst-editing-services pazpar2
annie gupnp pgcli
ansible haproxy pgpool-ii
arangodb hive phplint
asdf hopenpgp-tools plantuml
b2-tools ipfs pmd
bitcoin ipython ponyc
blockhash
cabextract isl quicktype
ccrypt jenkins root
chrome-cli jenkins-job-builder sbt
consul jpeg-turbo skinny
convox json-fortran swiftformat
docfx libdazzle teleport
dxpy link-grammar terragrunt
ethereum mapcrafter tippecanoe
faas-cli mikutter tmux-xpanes
firebase-cli mitmproxy tup
fn mkcert typescript
folly mongo-cxx-driver urh
fwup
gitbucket nsd yarn
gnome-builder openblas youtube-dl
go-jira paket
==> Downloading https://homebrew.bintray.com/bottles/redis-4.0.10.high_sierra.bo
######################################################################## 100.0%
==> Pouring redis-4.0.10.high_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
Last login: Tue Jul 31 23:40:59 on ttys000
➜ ~ redis-cli
127.0.0.1:6379> ping
PONG
127.0.0.1:6379>