Redis environment build, create services, build master-slave copy-windows version

Source: Internet
Author: User
Tags install redis

first, to build a Redis environment

1, Link: Http://pan.baidu.com/s/1boKAzzL Password: sh2r

2, do not repeat: the implementation of Redis-server, and then execute REDIS-CLI can, Redis environment is built.

  

  

second, graphical interface

third, the construction of master-slave replication

1, first to create a service to master. Extracted path: F:\linux\redis\redis6379

CD F:CD \linux\redis\redis6379 // Create a service for master that starts automatically each time the machine starts. redis-server--service-install redis.windows.conf--loglevel verbose  --service-name redis-master

2. Check the service.

3, Create child nodes (slave1/slave2/slave2), copy three copies, I test only one copy.

 Note: Enter the directory for SLAVE1 (redis6380), open the Redis.windows directory. Find salveof 127.0.0.1 6379. This means: Become a child node of 127.0.0.1 6379.

4. Create a service for slave in turn.

Redis-server--service-install redis.windows.conf--loglevel verbose  --service-name redis-slave6380

5, check whether to build a master-slave relationship success.

6. Or use the info command

Reference: http://www.cnblogs.com/jellyzhang/p/5812015.html

Redis environment build, create services, build master-slave copy-windows version

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.