Redis报错 : (error) NOAUTH Authentication require

Redis报错 : (error) NOAUTH Authentication required.

This is because there is no error with password authentication, enter the password first try.

127.0.0.1:6379> auth "yourpassword"

For example, the password is 'root', when there is certification problem, enter "auth 'root'" on it.

127.0.0.1:6379> set name "hello"
(error) NOAUTH Authentication required.
127.0.0.1:6379> (error) NOAUTH Authentication required.
(error) ERR unknown command '(error)'
127.0.0.1:6379> auth "root"

The following prompt appears if a password:

(error) ERR invalid password

So that you enter the wrong password, if you forget your password, do so to see your password:

  1. Redis enter the installation directory (the directory is installed) to view the file redis.config
    I was redis under windows:
  2. Use Notepad to open, find "requirepass foobared", will be able to find your password.
    For example, my password is this: requirepass 123456 is 123456
    password

  3. Cmd then re-enter the redis installation directory:
    (. 1) redis-server.exe redis.windows.conf open server
    (2) to re-enter the directory in another window, the input redis-cli.exe Open Client.
    (3) client input auth "123456" can go in (you enter your password found).
    For example, (3), I was like this:

C:\Program Files\redis64-2.8.2101>redis-cli.exe
127.0.0.1:6379> auth "123456"
OK


Added: error
MISCONF Redis is configured to save RDB snapshots
as follows:

(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.
127.0.0.1:6379> config set stop-writes-on-bgsave-error no

:( translation error) misconf redis is configured to save database snapshot, but misconf redis currently can not persist on the hard disk. Commands to modify the data set is not available, the error details usage logs.

The solution:
run config set stop-writes-on- bgsave-error no command to turn off the CI stop-writes-on-bgsave- error to solve the problem.
as follows:

127.0.0.1:6379> config set stop-writes-on-bgsave-error no
OK
127.0.0.1:6379> set a 110
OK
127.0.0.1:6379> get a
"110"

Reprinted from:  https://www.cnblogs.com/lonelyxmas/p/10534972.html

Redis报错 : (error) NOAUTH Authentication required.

This is because there is no error with password authentication, enter the password first try.

127.0.0.1:6379> auth "yourpassword"

For example, the password is 'root', when there is certification problem, enter "auth 'root'" on it.

127.0.0.1:6379> set name "hello"
(error) NOAUTH Authentication required.
127.0.0.1:6379> (error) NOAUTH Authentication required.
(error) ERR unknown command '(error)'
127.0.0.1:6379> auth "root"

The following prompt appears if a password:

(error) ERR invalid password

So that you enter the wrong password, if you forget your password, do so to see your password:

  1. Redis enter the installation directory (the directory is installed) to view the file redis.config
    I was redis under windows:
  2. Use Notepad to open, find "requirepass foobared", will be able to find your password.
    For example, my password is this: requirepass 123456 is 123456
    password

  3. Cmd then re-enter the redis installation directory:
    (. 1) redis-server.exe redis.windows.conf open server
    (2) to re-enter the directory in another window, the input redis-cli.exe Open Client.
    (3) client input auth "123456" can go in (you enter your password found).
    For example, (3), I was like this:

C:\Program Files\redis64-2.8.2101>redis-cli.exe
127.0.0.1:6379> auth "123456"
OK


Added: error
MISCONF Redis is configured to save RDB snapshots
as follows:

(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.
127.0.0.1:6379> config set stop-writes-on-bgsave-error no

翻译:(错误)misconf redis被配置以保存数据库快照,但misconf redis目前不能在硬盘上持久化。用来修改数据集合的命令不能用,请使用日志的错误详细信息。

解决办法:
运行 config set stop-writes-on-bgsave-error no命令关闭配置项stop-writes-on-bgsave-error解决该问题。
如下:

127.0.0.1:6379> config set stop-writes-on-bgsave-error no
OK
127.0.0.1:6379> set a 110
OK
127.0.0.1:6379> get a
"110"

Reprinted from:  https://www.cnblogs.com/lonelyxmas/p/10534972.html

Guess you like

Origin www.cnblogs.com/cndarren/p/12359302.html