Redis stores data in a dictionary structure and currently supports key-value types including: String type, hash type, list type, collection type, ordered collection type
All data in the Redis database is stored in memory and also provides support for persistence
Redis is not only doing database development, but also being used as a cache system, queue system and so on.
Redis officially does not provide a version of Windows, and Microsoft has opened another branch to support the Windows version of Redis.
The Redis open source address on Windows is: Https://github.com/MicrosoftArchive/redis
1. Download
Download the zip file in https://github.com/MicrosoftArchive/redis/releases and unzip it to the hard drive.
Some of these documents describe:
2. Modify the configuration file redis.windows.conf
To add a memory size configuration:
3.0 later versions can also not be modified, Redis will automatically set
To set the password for Redis:
3. Installation
CMD into the decompression directory, run the command:
Redis-server.exe redis.windows.conf--maxmemory 200M
Where--maxmemory 200M is optional, if you configure the file redis.windows.conf in the configuration, you can save, if not configured, add no Line
4. Testing
Open the Redis-cli.exe under the unpacked directory
If you set a redis password, you need to execute the auth password command, otherwise you will be prompted (error) Noauth authentication required.
5. Place Redis in Windows services
Also enter the unzip directory, execute the command
This is then attached to the Windows service.
This service is not enabled by default, you can use the command to set it to boot from, and turn on the service
Note: In the decompression directory, there is a use of the document, the specific use can refer to this text block
Introduction to 1.Redis and Windows installation