Redis is an open-source database where data is stored as key-value pairs in the C programming language.
Redis serves as a state server in the Web cluster, primarily storing information such as cached logins, template locks, and session IDs, while also validating all access and operations.
You can select and download the Redis installation package that is compatible with your Windows system in GitHub (download link: https://github.com/MicrosoftArchive/redis/releases). You can select and download the corresponding installation package of the latest version.
If you cannot access GitHub, you can download the file directly: Redis-x64-3.2.100.zip
Create a folder in Data (D:), for example, a folder named redis, and place the decompressed files to the folder.
Edit the configuration file redis.windows.conf, and make the following adjustments.
bind 127.0.0.1 ---> # bind 127.0.0.1protected-mode yes ---> protected-mode no# requirepass foobared ---> requirepass 123456 #123456 is the password, and can be modified.port 6379 ---> port 7379 # Modify the port to 7379.maxmemory 4294967296 # Set the memory to 4GB (recommended) in bytes or other size. (You need to add the content.)maxmemory-policy noeviction #When Redis reaches its maximum memory, it will not automatically clear or delete any keys to free up memory. New write requests will be rejected.
Press Windows + R, enter cmd, and click OK to enter the command prompt window. Execute the redis-server.exe redis.windows.conf statement. If the following content is displayed, Redis is successfully started, as shown in the following figure.
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉
Submitted successfully
Network busy