mac install redis
https://gist.github.com/tomysmile/1b8a321e7c58499ef9f9441b2faa0aa8
https://medium.com/@petehouston/install-and-config-redis-on-mac-os-x-via-homebrew-eb8df9a4f298
安装&测试
type below:
brew update
brew install redisGet Redis package information.
brew info redisTest if Redis server is running.
redis-cli pingIf it replies “PONG”, then it’s good to go!
运行
To have launchd start redis now and restart at login:(后台程序)
brew services start redisto stop it, just run:
Or, if you don't want/need a background service you can just run(用这个好):
Location of Redis configuration file.
设置密码
https://stackoverflow.com/questions/7537905/redis-set-a-password-for-redis
在/usr/local/etc/redis.conf里找到# requirepass foobared改成requirepass 123456
卸载
Uninstall Redis and its files.
Last updated
Was this helpful?