Configure some of the pits that Redis cluster encounters under Windows

Source: Internet
Author: User
Tags redis cluster

When I was not busy recently, I decided to learn about Redis. Because it's always working under Windows, no Linux, no way to choose to configure Redis under Windows.

There are many articles on configuring Redis clusters under Windows, such as: http://www.cnblogs.com/linjisong/p/6081312.html, I'm here to talk about some of the pits I've encountered.

1. Configuration files

After the Redis service is installed, there will be two configuration files, such as:

According to the official explanation, one is the command prompt to start Redis use, one is dedicated to the service, but I have a machine, changed the server's configuration file, does not work, the port changes. Later, two files were changed to OK.

2. The profile option must not have spaces in front of it

Because some configurations are annotated (that is, there is a # in front of the configuration item), I delete the # and leave a space, as a result, the following error occurred in starting Redis:

View Log display errors are:

Syslog-ident = Redis
Invalid argument during Startup:unknown conf file Parameter:cluster-config-file

I thought it was redis. The Windows Service version does not support this configuration option, a variety of online search and check, the last to know that the original Redis configuration items can not be preceded by spaces. I'm really drunk.

3. Not all16384 slots is covered by nodes error

This error was encountered when creating a Redis cluster with the REDIS-TRIB.RB create command: Not all16384 slots is covered by nodes.

This article: Http://www.cnblogs.com/xling/p/5253063.html said is the slot is not assigned, need to perform cluster meet, but after I have executed, the problem remains as usual .

Finally read this article: http://blog.csdn.net/vtopqx/article/details/50235891 use the REDIS-TRIB.RB fix command to solve the problem.

Configure some of the pits that Redis cluster encounters under Windows

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.