Ready check failed NOAUTH Authentication required


Ready check failed: NOAUTH Authentication required

通常是认证失败导致。

Redis

1
redis-cli -h xxxxxx -p 6379 -a pppppp

1
2
redis-cli -h xxxxxx -p 6379
auth pppppp

Nodejs

1
2
3
4
5
6
7
8
9
10
const redis = require('redis');

const options = {
port: 6379,
host: "xxxxxx",
pass: "pppppp"
};

const sub = redis.createClient(options);
sub.auth(options.pass);