window to configure the REDIS environment and simple use

Source: Internet
Author: User
Tags download redis install redis

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.