====================================
//查版號
$ redis-server --version
$ apt-get update
$ apt-get upgrade
$ apt-get install -y redis-server
$ cp /etc/redis/redis.conf /etc/redis/redis.conf.default
$ redis-cli
參考網址:
====================================
====================================
Mac
====================================
//查版號
$ redis-server --version
//安裝
$ brew install redis
//解除安裝
$ brew uninstall redis
----------------------------------------------------------
安裝教學:
This is my setup of redis with OS X 10.9.2 Mavericks and requires brew.
$ brew install redis
Start redis when computer starts:
$ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
Start redis:
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
Without using launchctl:
$ redis-server /usr/local/etc/redis.conf
Check is redis is correctly running:
$ redis-cli ping
This should reply with PONG if successful.
Configuration
The configuration file is located in /usr/local/etc/redis.conf.
Uninstall redis:
$ brew uninstall redis; rm ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
$ rm ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
參考網址:- http://www.richardsumilang.com/blog/2014/04/04/how-to-install-redis-on-os-x/
- https://medium.com/@petehouston/install-and-config-redis-on-mac-os-x-via-homebrew-eb8df9a4f298
================================
沒有留言:
張貼留言