3.redis.3.2 Download, install, configure, use, cluster master-slave creation-3

Source: Internet
Author: User
Tags install redis

Of course, the main cluster is the configuration file: Simple configuration, Port 7001bind 127.0.0.1databases 16appendonly yesappendfilename "Appendonly.7000.aof" cluster-enabled yescluster-config-file nodes-7001.confcluster-node-timeout 15000cluster-slave-validity-factor 10cluster-migration-barrier 1cluster-require-full-coverage Yes to create a redis.conf into the specified directory, I put it directly to the root directory of the Redis decompression file, so, Copy 5 out, a total of 6, why? Ask well, this oneself go to crossing net of document, at least 3 main +3 from, notice, here have a few to notice place, this net many pit goods intentionally pit you, for example, port,nodes, this need to change to you this node of port, above my port is 7001,7002,7003,,,,nodes is also nodes-7001,nodes-7002,,,, the following files are generated when the cluster is created: otherwise it will error and cannot be created successfully. Brother personally stepped on this hole, put this pit filled, everyone later attention.   Then is install these six service administrator identity cmd run six times, if it is multi-server, each server runs once Redis-server.exe--service-install redis.7001.conf-- Service-name redis7001 ..... So, the operation six times, each need to replace the redis.7001.conf and the back of the redis7001 (specify the name of the service created), both, after all installed, run operation, this is very simple, the front two have said, Redis-server.exe Redis.7001.conf also replace 7001 with the name 7002 7003 respectively ..... 7005, after performing all the execution OK, start the focus, create the cluster you need to be aware of, to install Ruby, get: https://www.ruby-lang.org/en/downloads/or/HTTP Akamai.bintray.com/f6/f600c3d1baff0dcf5fd86280e6e9c4703ceb9c641a7fef90fb551c8c6f5825fd?__gda__=exp=1470290277~hmac=a00e7622f65d9dd125641d4f3a09fd5e0ca0ad848931e508b31a2fcd37c232ce& response-content-disposition=attachment%3bfilename%3d%22rubyinstaller-2.2.4-x64.exe%22& response-content-type=application%2fx-dosexec  then, the installation interface has three check boxes, all selected, of course, can be ignored, redis3. X, the file has,  below start to create the cluster, blind look, quite delightful isn't, can it not, he error, the errors are obvious, especially this is not possible with 4 nodes and 1 replicas per node, another Outside, in the redis-cli operation, there will be the following hint  MD, what situation? Good has been created well, how can be the result, but the error is obvious, the problem of consistent hash algorithm, hash algorithm this block can not provide services. Can view the official documents, at least 3+3, that is, 6, so then create two, and then start, then repeat the above cluster action, the results are as follows:  see, is not it? By default, three of these nodes are used as Master master and the other three as slave nodes. , at this time input yes  and then slowly wait for it, no problem of words,,,, to tell the truth, than the turtle climbed slow (the situation, the basic is to hold the wrong, CTRL + C termination, you can see the error of the hint)   success, did not see the results   social too realistic, The pit is small 20,000, do not hit you, elder brother feel sorry oneself   

3.redis.3.2 Download, install, configure, use, cluster master-slave creation-3

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.