Install redis and windows redis in windows
1. Download Redis for windows
After searching for the windows version on the official website for a long time, I found that the windows version can be downloaded from the official website. Currently, the windows version is only available on github. The official website only provides the linux version for download.
Official Website: http://redis.io/download
Github: https://github.com/MSOpenTech/redis/tags
Ii. Install Redis
1. Here the download is the Redis-x64-3.2.100 version, my computer is win7 64-bit, so download the 64-bit version, Enter cmd in the run, and then point the directory to the decompressed Redis directory.
2. Start the command
Redis-server redis. windows. conf. If it is displayed, the startup is successful.
3. Set up the Redis Service
1. Although redis is started above, redis will disappear as long as the cmd window is closed. Therefore, we need to set redis as a service in windows.
That is, the Redis service is not used.
2. Set service commands
Redis-server -- service-install redis. windows-service.conf -- loglevel verbose
If no error is reported after you enter the command, it indicates that the operation is successful. Refresh the service and you will see an additional redis service.
3. Common redis service commands.
Uninstall the service: redis-server -- service-uninstall
Enable service: redis-server -- service-start
Stop service: redis-server -- service-stop
4. Start the service
5. Test Redis
The installation test is successful.
Here just do simple installation, deployment service use, more in-depth use can go to redis Chinese network to see http://www.redis.net.cn/blog Park also has a lot of in-depth use of methods, because my blog system needs to use, let's make a discussion.
There is a document in the downloaded decompression package, which provides detailed instructions,
For more information, thank you.