Window under Installation
:https://github.com/dmajkic/redis/downloads.
Redis supports 32bit and 64bit to download. Depending on your actual situation, select the 64bit content CP to the custom drive letter installation directory named Redis. such as C:\reids
Open a CMD window using the CD command to switch directories to C:\redis run redis-server.exe redis.conf .
If you want to be convenient, you can add the path of Redis to the environment variables of the system, so as to save the path again, the latter redis.conf can be omitted, if omitted, the default is enabled. After entering, the following interface is displayed:
At this time another cmd window, the original do not close, otherwise you will not be able to access the server.
Switch to the Redis directory to run the redis-cli.exe-h 127.0.0.1-p 6379 .
Set the key-value pair set MyKey ABC
Remove key value pair get MyKey
Install under Linux
:http://www.redis.net.cn/download/, download the latest version of the document.
The latest version of the document used in this tutorial is 2.8.17, download and install:
$ wget http://download.redis.io/releases/redis-2.8.17.tar.gz$ tar xzf redis-2.8.17.tar.gz$ cd redis-2.8.17$ make
After make the redis-2.8.17 directory will appear after the compiled Redis service program Redis-server, as well as the client program for testing REDIS-CLI
Start the Redis service below.
$./redis-server
Note this way of starting Redis is using the default configuration. You can also tell Redis to start with the following command using the specified configuration file through the startup parameters.
$./redis-server redis.conf
Redis.conf is a default configuration file. We can use our own configuration files as needed.
Once the Redis service process is started, you can use the test client program REDIS-CLI to interact with the Redis service. Like what:
$ ./redis-cliredis> set foo barokredis> get foo "bar"
Reference: http://www.redis.net.cn/tutorial/3503.html
Windows-redis installation Link: http://pan.baidu.com/s/1boJvn91 Password: 3x3w
Installation under Redis-windows and Linux