Installation of Redis under Windows system
Redis is a widely used Key/value memory database that is used as a cache in large applications such as Sina Weibo, Github, StackOverflow, and Redis's official website is http://redis.io/.
Recently want to the company's website cache with Redis to replace the test, also tall on a back ~, record the whole process, in order to follow up the work!
1.Redis Downloads
Redis itself does not provide a version of Windows, and is also less stable on windows, generally deployed to the Linux environment, Redis can be downloaded on its official website, Msopentech in the version of Windows, where LZ installed the latest version.
Click Jump to GitHub and click on the download Zip download in the lower right corner. After download, compile with the RedisServer.sln solution with VS Open MSVs folder and choose Win32 or X64 platform based on the version of your computer. As shown in the description:
2.Redis Installation
I put the compiled EXE file into the E:\Redis2.8\Redis64-2.8 folder, while the source folder redis.conf also copied to the directory, as shown in the red box:
To enable Redis under Windows, you need to start with a command line, navigate to the directory, and run the following command:
E:\redis2.8\redis64-2.8>redis-server.exe redis.windows.conf
appear on the installation succeeded, in fact, Redis installation is very simple!
3.Redis Simple to use
Also open a DOS window to run the Redis client, such as the following command:
To prove the successful connection of the client, now you can use it!
Description: The IP address of this machine is followed by-H
After-P is a given port in Redis
Resources
- Redis Author blog, this is one of the articles about how to implement AutoComplete based on Redis: http://oldblog.antirez.com/post/autocomplete-with-redis.html
- Redis third-party management tools for windows:http://redisdesktop.com/
- Redis. NET Link tool for Top20:http://nugetmusthaves.com/tag/redis
- Redis Command Chinese document: http://redis.readthedocs.org/en/redirect-to-RedisDoc.com/
Installation of Redis