简体   繁体   中英

Redis password lost after reboot system

I want to set up a password on Redis, for this I ran a command and configured by below command.

> config set requirepass <password>

It works fine at all, Redis needs authentication but whenever Server is restart or kill the Redis and Re-open it. The password reset to default (ie Blank)

> config get requirepass

Kindly, any quick help will be appreciated. Note: I am using Windows

From the doc here :

Note that modifying the configuration on the fly has no effects on the redis.conf file so at the next restart of Redis the old configuration will be used instead.

You should update the config file instead for it to persist.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM