xuzhengfu / pilot

进入编程世界的第一课
1 stars 0 forks source link

x6-redis-setup Redis 配置指南 #45

Open xuzhengfu opened 4 years ago

xuzhengfu commented 4 years ago

1. macOS

brew install redis

结果如下:

xuzhengfu at xuzhengfudeiMac in ~
$ brew install redis

==> Downloading https://homebrew.bintray.com/bottles/redis-5.0.8.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/c7/c72def1c78f6c24c02d47de80a0b5ae5ef67640a
######################################################################## 100.0%
==> Pouring redis-5.0.8.mojave.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/5.0.8: 13 files, 3.1MB
brew services start redis

结果如下:

xuzhengfu at xuzhengfudeiMac in ~
$ brew services start redis
==> Successfully started `redis` (label: homebrew.mxcl.redis)

2. 验证

127.0.0.1:6379>

Logging

2020-04-14 21:44:36 initialize