Invalid password set in Redis configuration file in Windows environment

Source: Internet
Author: User

When we installed the Redis service, we found that the password was set in its configuration file redis.windows.conf (or redis.conf): requirepass ******

But after opening redis-cli.exe, enter the command config get Requirepass found:

This indicates that the password setting in the configuration file is not in effect.

Cause: The problem is that we started the Redis service by double-clicking Redis-server.exe in its installation directory, so that the startup result is that the profile is not specified, and Redis does not automatically use the redis.windows.conf (or redis.conf) file under the installation directory

The red line is framed by a hint that says very clearly "warning:no config file specified" does not specify a profile

Workaround:

Method 1: In fact, we started the Redis service directly in the installation directory error, the correct way is to open "run", type "cmd" cut to the installation directory output Redis-server.exe redis.windows.conf, enter, you can.

Method 2: After the new file Startup.bat in the Redis installation directory, right-click "Edit", or first create the file with Notepad, and then change the extension, the file is written: Redis-server.exe redis.windows.conf. Save, and then run the file directly, do not run Redis-server.exe directly, you can.

Invalid password set in Redis configuration file in Windows environment

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.