Say something
Now the Internet is playing on the high-distributed cache, or distributed database, to interview the time will also ask some relevant knowledge and application scenarios, no play will be out. Redis official only provide Linux version download, Windows need to go to github download, github default seems to open and download, I use chrome opened and downloaded, and open the page particularly slow, and I installed a red apricot VPN, if you can not open, please don't be surprised.
First, download and install
1,: Https://github.com/downloads/dmajkic/redis/redis-2.4.5-win32-win64.zip. Depending on your system choice is 32-bit or 64-bit.
2, after decompression in the D disk to create a new folder Redis, will extract files copied in, a total of 7 files, the most commonly used for: redis.conf, Redis-server.exe, Redis-cli.exe.
3. Add the Redis directory to the environment variable so that each time you need to switch judgment and enter the full path at the command prompt.
Second, start the server and the client
1. Open command Prompt to enter command Redis-server.exe can also enter Redis-server.exe redis.conf. If you do not enter, the default is to use the redis.conf configuration file. The server is turned on and there is no client connection at this time.
2, open the client, enter Redis-cli.exe-h 127.0.0.1-p 6379. The default port is 6379.
3. After opening the client, the server will display the current number of client connections.
4, insert value and get value.
Summarize
There has been no application environment to use Redis, and now the environment has changed, so let yourself change in the environment, learn and strengthen Redis. Another problem is that the start server is now using DOS commands, each time you need to open a command prompt, how can you use Windows services to open the Redis service?
windows8.1 Installing Redis