-
Notifications
You must be signed in to change notification settings - Fork 0
Setup Redis for caching
I had downloaded redis-64.3.0.503.zip from below url
https://github.com/ServiceStack/redis-windows/tree/master/downloads
unzip the folder
Click on redis-server application file, it will start the redis server.
Redish will be listining on 6379 port of your machine, where it is started.
For Linux server(Not yet tested by me): Follow the below steps:
Installation Download, extract and compile Redis with:
$ wget http://download.redis.io/releases/redis-4.0.9.tar.gz $ tar xzf redis-4.0.9.tar.gz $ cd redis-4.0.9 $ make The binaries that are now compiled are available in the src directory. Run Redis with:
$ src/redis-server You can interact with Redis using the built-in client:
$ src/redis-cli redis> set foo bar OK redis> get foo "bar"
References:
Install and config Redis on Mac OS X via Homebrew
By using Homebrew, you greatly reduce the cost of setting up and configuring the development environment on Mac OS X.
Let’s install Redis for the good.
$ brew install redis After installation, you will see some notification about some caveats on configuring. Just leave it and continue to following some tasks on this article.
Launch Redis on computer starts. $ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents Start Redis server via “launchctl”. $ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist Start Redis server using configuration file. $ redis-server /usr/local/etc/redis.conf Stop Redis on autostart on computer start. $ launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.redis.plist Location of Redis configuration file. /usr/local/etc/redis.conf Uninstall Redis and its files. $ brew uninstall redis $ rm ~/Library/LaunchAgents/homebrew.mxcl.redis.plist Get Redis package information. $ brew info redis Test if Redis server is running. $ redis-cli ping If it replies “PONG”, then it’s good to go!
Well, I guess, that’s it!
Have fun Redis-ing ☺