First, about Redis
Redis is an open source (BSD licensed), memory-stored data structure server that can be used as a database, cache, and Message Queuing agent. It supports data types such as strings, hash tables, lists, collections, ordered collections, bitmaps, hyperloglogs, and so on.
Official website: https://redis.io/download, Redis is not supported for Windows, but the Microsoft Open Technology team makes it all possible; window version: https://github.com/MicrosoftArchive/redis/releases
Ii. Installing and configuring Redis
Download Redis for Window x64.zip, pressurization to the specified directory, as shown in I unzipped to D-Drive.
Open the CMD Command window, install and register the Redis to window service, and note that the installation and startup services need to be performed at the root of the decompression Redis, where the REDIS environment
installation command: Redis-server.exe--service-install redis.windows.conf--loglevel verbose
Start service command: Redis-server.exe--service-start
Close Service command: Redis-server.exe--service-stop
Installation and registration services, start the service started after we can see the word successfully, indicating that we have successfully configured, below we go to Window-service to view local services, such as Redis already exists and started
Iii. Client use of Redis
We re-opened a cmd, called the Redis service as a client, as shown in, the Invoke command is: Redis-cli.exe-h 127.0.0.1-p 6379, such as display address and port, stating that the call succeeded
Then we test with the set and get commands, set uname "ABC", and then use get uname to get the value of the corresponding set, indicating that the call succeeded
Iv. Redis notes and other
Note that all commands need to be executed in the Redis root of window decompression, without installation, window switch directory needs to be first cut to drive letter D: Then CD to the specified path of the drive letter
The relevant configuration files and official documents are in the downloaded directory, such as the following Conf file can modify the service port number, the default is 6397
window to configure the REDIS environment and simple use