C # Redis Learning Series III: Redis Configuration Master-Slave

Source: Internet
Author: User

Redis Configuration Master-Slave

Primary IP: Port 192.168.0.103 6666

From IP: Port 192.168.0.108 3333

    1. Configure from Library

(1) Installation service: Redis-server--service-install--service-name redisService6666--port 6666

(2) Start process: Redis-server--service-start--service-name redisService6666

(3) connection Redis:redis-cli.exe-h 127.0.0.1-p 3333

(4) Set master-slave slaveof 192.168.0.1036666

(5) Info to see if the configuration was successful

As follows:

To configure successful results:

    1. The main library does not need to be configured, just install it and you can view

C # Redis Learning Series One: Redis awareness, download, installation, use installation

(1) connection redis:redis-cli.exe-h 127.0.0.1-p 6666

(2) Info view master and slave results

Configure successful results

    1. Verify

Main Library Settings set name Change_4_now

Get Get name from library

C # Redis Learning Series III: Redis Configuration Master-Slave

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.