- Download and extract the last Redis version (2.8.4)
- Copy all extracted binaries to
c:\redis\bin
- Create another folder at
c:\redis\inst1
- Download and extract the RedisWatcher binaries from the 2.4 branch
- Run
InstallWatcher.msi
with administrator rights. This should create a Windows service called Redis watcher. - Open up the Windows Services console and start the Redis watcher service.
- (optional) RedisWatcher should have installed to C:\Program Files (x86)\RedisWatcher. There you'll find a config file called watcher.conf, which you can edit to set up additional instances, use different paths than I specified in steps 2 & 3, etc. You will not need to restart the service for changes to take effect.
Source: http://stackoverflow.com/a/20200022 and http://msopentech.com/blog/2014/03/24/updates-released-redis-windows
Computer->Properties->Advanced->Env Variables->Path :
;C:\redis\bin;
$ redis-cli ping
PONG
Running redis-cli followed by a command name and its arguments will send this command to the Redis instance running on localhost at port 6379. You can change the host and port used by redis-cli, just try the --help option to check the usage information.
Another interesting way to run redis-cli is without arguments: the program will start into an interactive mode where you can type different commands:
$ redis-cli
redis 127.0.0.1:6379> ping
PONG
redis 127.0.0.1:6379> set mykey somevalue
OK
redis 127.0.0.1:6379> get mykey
"somevalue"