Install and configure Redis on window
Today, Redis is the most popular in-memory database, supporting hashes, lists, collections, sorting sets, and more. You can find more details in the official Redis documentation.
The official website does not provide a window version, now the official website does not have a download address, can only be downloaded on GitHub, the official website only provides the download of the Linux version.
Github download: https://github.com/MicrosoftArchive/redis/releases
2. Install Redis-server
You need to remember the path you are installing that will be used in further processing.
Set the service port of Redis. The default is 6379.
Select the path to install, and put a tick (this is very important), add to the path is to set Redis to windows services, or you must start the command Redis-server Redis.windows.conf in this directory, but as long as When you close the cmd window, Redis will disappear, which is more troublesome.
If the application scenario of Redis is used as DB, then do not set this option, because DB cannot tolerate data loss.
If you are a cache, you have to look at your own needs (I set the maximum memory limit of 1024M here)
3. Test Redis
If you are installing through the MSI file like me, you can see Redis running in Task Manager→ Processes.
You can also stop it (The error code 18012 will appear if you didn't stop, indicating that the local port 6379 is occupied)
Then go to the root directory of the Redis installation path in the cmd window.
Tap in commend> redis-server.exe redis.windows.conf
This means you installed correctly!!