Installing Redis on the window

Source: Internet
Author: User
Tags download redis docker run install redis

Redis does not have an official version of Windows, if required in Windows installation can download Redis (Https://github.com/MicrosoftArchive/redis) maintained by Microsoft.

Here we take another way to use Docker to install Redis

What is Docker?

Docker is a container for apps, and Docker constructs an environment that is separate from the host, and then the app runs on that separate environment. Docker interacts with the host through port binding. Because Docker can be used to ignore the system environment of a host, we use Docker to install Redis.

installation process

(1) Installing Docker

(2) Download the Redis image

Docker Pull Redis

(3) Start the Redis image. Because Redis persistence requires data files to be stored on disk, we want to mount a local file corresponding to the/data. While Redis exposes a port of 6379, the port of the container is mapped to the port of the host system. Finally, keep the background executed.

Docker run--name redis_container-p 6379:6379-v c:\redisdata:/data-d redis redis-server--appendonly Yes

(4) To test Redis, we can go into the container to test

Docker exec-it Redis_container/bin/bash

(5) Test at command line input REDIS-CLI

Installing Redis on the window

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.