Solve the problem of redis password modification in Linux does not take effect

1. Modify redis.conf and add password verification

Insert picture description here

2. Open redis-cli to execute the command:

The specific password is as follows:

cd /usr/local/cjrh/redis-4.0.2/src
./redis-cli
config set requirepass 123456

Picture:
Insert picture description here

3. Set up successfully

Insert picture description here

Guess you like

Origin blog.csdn.net/u010312671/article/details/107294050